For work, I am SSH-ing into a server. I haven't done this for months, so something has changed where it now asks me for a password. Previously, after authenticating it would work. Here's what I typically write to ssh in:
ssh -p2222 firstname.lastname@example.org
I looked at the debug info, and it showed that the server wasn't even asking for the appropriate keyfile. Instead, it first offers an public key that I deleted (id_rsa)..then it turns to private keys...then it asks for a password, which I shouldn't need.
debug1: Found key in /Users/myname/.ssh/known_hosts:40 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Next authentication method: publickey debug1: Offering RSA public key: /Users/myname/.ssh/id_rsa debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Trying private key: /Users/myname/.ssh/id_rsa debug1: Trying private key: /Users/myname/.ssh/id_dsa debug1: Next authentication method: password
However, when I specify the identity file, it works:
ssh -i ~/.ssh/correctkey email@example.com!
What do these errors mean, and how do I get ssh to work without getting prompted for a password? This is important because I use the GUI called Fugu --the only GUI for SCP available--and I can't use the -i option in it!
Is there something on the server side of the equation that I need to get fixed?