Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-13-2003, 01:34 PM   #1
LQ Newbie
Registered: Dec 2003
Posts: 9

Rep: Reputation: 0
Mulitiple RSA Keys

I am trying to use some rsa keys to run backup scripts via cron, ssh and rsync. I have a backup server in my apartment that connects to a remote host in another state and grabs all changed files. To automate this processes I used the following commands with success:

ssh-keygen -t dsa 
scp .ssh/ [email]
ssh [email]
cat >> .ssh/authorized_keys2
Now, this worked for the first machine, but now I need this same machine, the one in my apartment, to connect to another server to run backups the same way. How do I set up another key pair, or do I just use the same one for the other server? I have generated a new set and named it differently (if I don't, I'll overight the existing one that works for the first server) but it didn't work. Help, please

Last edited by Reformed; 12-13-2003 at 01:36 PM.
Old 12-13-2003, 01:37 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

You just need to copy the public key to the authorized keys file on the other computer too. you don;t need to create a new set.

Last edited by david_ross; 12-13-2003 at 01:39 PM.
Old 12-13-2003, 01:56 PM   #3
LQ Newbie
Registered: Dec 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Okay, thanks for the help. I copied my existing public RSA key over to the second server's authorized_keys2 file and I can see that it's there, but I am still being prompted for a password on that second machine. Pretty strange. Does the key on remote server just look for a match on the client regardless of who the user is? Not sure how this works.
Old 12-13-2003, 02:02 PM   #4
LQ Newbie
Registered: Dec 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Funny thing. The first time I tried getting in it didn't work, but now it does. Thanks for the help.


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
Konqueror-RSA Keys XaViaR Linux - General 5 12-03-2006 05:28 AM
SSH Forcing users to use RSA keys XaViaR Linux - Security 8 07-07-2005 12:42 AM
RSA Keys for SSH XaViaR Linux - General 4 07-02-2005 09:15 AM
Where to install RSA keys? KMorley Linux - Newbie 1 02-24-2005 02:33 PM
Moving mulitiple files psyklops Linux - General 2 02-01-2002 05:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:01 PM.

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