I just created a set of SSH keys and used ssh-copy-id
to copy it on to a remote server.
Upon trying to connect via ssh
I got the error
sign_and_send_pubkey: signing failed: agent refused operation
Similarly, when trying to connect via MOSH I get asked for a passphrase even though these keys were made without a passphrase at all.
All of the permissions on my .ssh
folder (and my home directory) were set to 700
.
Looking at this answer led me to try
I think your ssh-agent isn't working ! Perform the following commands...
eval ssh-agent -s
ssh-add
which immediately made the login work. The problem with this is that I do not want to always have to use ssh-agent, MOSH itself does not support SSH-Agent and so I am wondering if there is a way I can make my keys work without using ssh-agent
. Can somebody explain to me if this is possible.
Note: The remote computer in this case is a Raspberry PI running Pidora.
ssh username@ipaddress
Also, the other way, with mosh, was just by opening the chrome app and typing in the username and passwordid_rsa