Welcome Guest | Login

Problem with second ssh key in 'authorized_keys'

I have two computers at home both running os x. i'm trying to set up ssh keys for both of them so that they can deploy the same app to the server via capistrano without me having to enter passwords during the process.

My first machine is set up correctly, its public key is in the authorized_keys file and i can successfully deploy my applications with cap deploy without having to enter passwords.

Now i'm trying to get the same thing going for my second machine.

I'm following Marks suggestion for adding a workaround to add extra keys to the authorized keys file (in the absense of the ssh-add-id command which i don't seem to have either)http://www.hostingrails.com/forums/wiki_thread/27

user@homebox ~ $ scp .ssh/id_dsa.pub user@servername:homebox_dsa.pub
user@homebox ~ $ ssh user@servername
user@servername ~ $ cat homebox_dsa.pub >> .ssh/authorized_keys
user@servername ~ $ rm homebox_dsa.pub
Following this guide i can successfully add the public key from my second computer to the servers authorized_keys file too. But when running cap deploy from my laptop, it exits with an error complaining the 'fingerprint [long hex number] does not match for 999xxx.edwards.hostingrails.com' (server name changed)

It occurred to me that on both computers i'm trying to add public keys for, i have the same username. could this be complicating things?

Does anyone have any other ideas about what might be causing the complication?

thanks a lot!

2007-05-14 09:25 AM

I had a similar issue happen to me this weekend. I was able to ssh in without having to enter my password, but Capistrano gave me a similar error. What I ultimately ended up doing was uninstalling the latest net-ssh gem, and using version 1.0.10. After that Capistrano worked fine for me.

If that doesn't work for you, why don't you post the error message from Capistrano.

2007-05-14 11:29 AM

thanks willc, this suggestion fixed it! (i forgot to 'submit' my post earlier.. the preview in this forum looks as though it's already been submitted, this has caught me out a couple of times ;) )

2007-06-20 05:02 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.