LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-13-2003, 01:34 PM   #1
Reformed
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:

Code:
ssh-keygen -t dsa 
scp .ssh/id_dsa.pub [email]user@myhost.com:~/
ssh [email]user@myhost.com
cat id_dsa.pub >> .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
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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
Reformed
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
Reformed
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:57 PM.

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