View previous topic :: View next topic |
Author |
Message |
jtrooney Tux's lil' helper
Joined: 10 Nov 2004 Posts: 82
|
Posted: Mon Apr 25, 2005 6:09 pm Post subject: SSH Keys |
|
|
Hey guys...I'm trying to reimplement a backup utility on a couple of my servers at work. The way this works is it is a script that connects as root to to the others, using a public key and ssh, and executes an rsync command. This is up and running with out a problem but I need to add this functionality over to another server as well and am having trouble getting this up and running. I have created an ssh key using
Code: | ssh-keygen -b 1024 -t rsa |
and have copied that id_rsa.pub data over to the other servers authorized file. When ever I try to ssh over it still prompts me for a password for the server I am connecting too. Any idea as to what I'm missing? I can post any files that are necessary. Thanks in advance
Jeff |
|
Back to top |
|
|
lopez n00b
Joined: 24 Jun 2004 Posts: 52 Location: Toledo, OH USA
|
Posted: Mon Apr 25, 2005 6:57 pm Post subject: |
|
|
check your permissions on your .ssh dir and authorized_keys
Code: | chmod 600 ~/.ssh/authorized_keys
chmod 700 ~/.ssh |
|
|
Back to top |
|
|
bigfunkymo Apprentice
Joined: 23 Jan 2004 Posts: 237
|
Posted: Mon Apr 25, 2005 6:57 pm Post subject: |
|
|
are you running your ssh agent? _________________ [No package... Grabbing a set.] |
|
Back to top |
|
|
neilhwatson l33t
Joined: 06 Feb 2003 Posts: 719 Location: Canada
|
|
Back to top |
|
|
jtrooney Tux's lil' helper
Joined: 10 Nov 2004 Posts: 82
|
Posted: Mon Apr 25, 2005 11:52 pm Post subject: |
|
|
First off...thanks for the fast replies guys =) I went ahead and double double checked the permissions and it is working now. The only problem is that i have to enter the passphrase everytime inorder for this to work. How can I create a key so that I won't need to enter the passphrase?
BTW I'm just trying to mirror our current setup over to a new server. After looking at the authorized keys on the other servers I noticed that the other keeys look something like
Code: | 1024 35 121216546456511321..... |
and the keys that I am generating are completely different
Code: | ssh-rsa AAAAB3NsfsdfesfxF.... |
Any ideas? Thanks in advance |
|
Back to top |
|
|
lopez n00b
Joined: 24 Jun 2004 Posts: 52 Location: Toledo, OH USA
|
Posted: Tue Apr 26, 2005 1:56 am Post subject: |
|
|
If you don't want a passphrase don't enter any when you create your rsa/dsa private key.
Its not the best way without a passphrase though I suggest using ssh-agent.
Here is a nice article to get you going:
http://www-106.ibm.com/developerworks/library/l-keyc2/ |
|
Back to top |
|
|
dashnu l33t
Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Tue Apr 26, 2005 1:46 pm Post subject: |
|
|
*edit nm _________________ write quit bang |
|
Back to top |
|
|
|