LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: load balancing using keepalived

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: load balancing using keepalived
From: "Dr. Volker Jaenisch" <volker.jaenisch@xxxxxxxxx>
Date: Wed, 23 May 2007 20:48:08 +0200
Hi Gerry!

Gerry Reno schrieb:

# netstat -a -n -p | grep -e ssh -e keepalived
tcp 0 0 :::22 :::* LISTEN 2387/sshd
As you can see in this line the sshd is blocking the port 22. So keepalived can not use this port.

Just move sshd out of the way.

Change in

/etc/ssh/sshd_config

the line

Port 22

to e.g.

Port 2222

and perform a

/etc/init.d/ssh restart
/etc/init.d/keepalived restart

To connect to this machine directly via ssh you will now have to use

ssh -p2222 gerry@<vip>

All others using

ssh gerry@<vip>

will land via the ipvs on your realservers.

Best Regards,

Volker

--
====================================================
  inqbus it-consulting      +49 ( 341 )  5643800
  Dr.  Volker Jaenisch      http://www.inqbus.de
  Herloßsohnstr.    12      0 4 1 5 5    Leipzig
  N  O  T -  F Ä L L E      +49 ( 170 )  3113748
====================================================


<Prev in Thread] Current Thread [Next in Thread>