LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2011, 12:17 AM   #1
aggrishabh
Member
 
Registered: Nov 2010
Posts: 87

Rep: Reputation: 1
Lightbulb 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.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-24-2011, 01:19 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
2 members found this post helpful.
Old 03-24-2011, 08:15 AM   #3
aggrishabh
Member
 
Registered: Nov 2010
Posts: 87

Original Poster
Rep: Reputation: 1
Thanks for replying.

i will try it.
 
Old 03-24-2011, 09:01 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

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

Kind regards,

Eric
 
1 members found this post helpful.
Old 03-29-2011, 07:17 AM   #5
aggrishabh
Member
 
Registered: Nov 2010
Posts: 87

Original Poster
Rep: Reputation: 1
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.
 
Old 03-29-2011, 07:06 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
round robin dns linuxengineer Linux - Server 1 11-16-2010 03:55 AM
round robin dns linuxengineer Linux - Networking 1 11-16-2010 03:54 AM
Deliver incoming emails in "round-robin" fashion to a pool of email addresses retrovertigo Linux - Server 1 05-07-2009 05:29 PM
[SOLVED] Having trouble with echoing strings in round robin fashion luvshines Linux - Newbie 7 04-16-2009 07:50 PM
dns round-robin tzkolinux Linux - Networking 1 12-27-2004 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration