LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH in Round robin fashion (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-in-round-robin-fashion-870638/)

aggrishabh 03-24-2011 12:17 AM

SSH in Round robin fashion
 
Hi All,

if i am having say 10 number of linux machine over the network and want to setup password free SSH in round robin fashion means ssh from any machine to either machine.

one way to do is generate the public key on every machine and put on other machine. is there any other shorter and simple way to do it?


Thanks in advance.

EricTRA 03-24-2011 01:19 AM

Hello,

You can use the same key combination on all servers. No need to create a seperate key for every machine. I use the same key and key.pub combination on several servers. Copy the .pub key to the destination servers and add it to authorized_keys, copy the key itself to the server from which you want to connect and you're done. You can then connect using the same key from any server where you saved it to any server where you added the .pub part. Of course, for security's sake you need to be aware that if someone gets their hands on your key, they'll have access to all your servers, so take some extra precautions.

Kind regards,

Eric

aggrishabh 03-24-2011 08:15 AM

Thanks for replying.

i will try it.

EricTRA 03-24-2011 09:01 AM

Hi,

Ok, please let us now how it goes and if you need more help don't hesitate to post here.

Kind regards,

Eric

aggrishabh 03-29-2011 07:17 AM

Thanks it works.

1 thing i would like to know more is that

i usually do the system checkouts in my office of Linux machine
some times i face tyhe problem that server is ping-able but ssh or direct login dosen't work right now i am working on
a automation part. so is there any other way (other then ping) where i can assure that the server is running fine.

chrism01 03-29-2011 07:06 PM

ping only tests that the network stack is up. It doesn't tell you what (if anything) the system is doing. You could look into snmp http://linux.die.net/man/8/snmpd.
It sounds like you may be heading towards a Nagios requirement if you have multiple servers and want to be able to monitor them.
https://secure.wikimedia.org/wikipedia/en/wiki/Nagios


All times are GMT -5. The time now is 07:08 PM.