19
7
I am trying to SSH from a NAS to a webserver using a public key. NAS user is 'root' and webserver user is 'backup'
I have all permissions set correctly and when I debug the SSH connection I get: (last little bit of the debug)
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Offering DSA public key: /root/.ssh/id_dsa.pub
debug1: Server accepts key: pkalg ssh-dss blen 433
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_dsa.pub':
I am using the command:
ssh -v -i /root/.ssh/id_dsa.pub backup@webserver.com
The fact that it is asking for a passphrase is a good sign surely, but I do not want it to prompt for this or a password (which comes afterwards if I press 'return' on the passphrase)
Fact that I was using my pub to authenticate (a stupid mistake) was the issue. Thanks! – Qix - MONICA WAS MISTREATED – 2014-08-07T17:55:53.730
still get the issue. It did work and granted me with 'your identification has been saved with the new passphrase'. but then still asks for a passphrase the next time I try and login. I'm not sure what else to try... – Andrew Atkinson – 2012-11-20T21:52:32.173
check my updated answer... maybe that helps... – andrekeller – 2012-11-20T22:15:48.163
thank you, it seems I was possibly trying to compare the public key to the public key... I did not need to remove the passphrase – Andrew Atkinson – 2012-11-20T22:25:40.993