mai-89
By:
mai-89

Created droplet with ssh and still asking for password

September 18, 2013 6.2k views
I create droplet and tap on pre-built-ssh key. When logging in to ssh root@ i'am getting The authenticity of host ' ()' can't be established. RSA key fingerprint is . And then asking for password... Can you please help? Woking on macOS x
9 Answers
I'm had the same problem. When I ran cat /root/.ssh/authorized_keys I saw the correct ssh key. I fixed it using an entry in my ssh config that looks like this:

#DIGITALOCEAN
Host do-WEBPROJECTS
HostName
User root
IdentityFile ~/.ssh/id_rsa_DIGITALOCEAN

On the command line I enter, "ssh do-WEBPROJECTS". My Mac prompts me for the passphrase to the ssh key.. and I'm in.
Does the SSH key you added to your DigitalOcean account match the output of cat ~/.ssh/id_rsa.pub on your mac?
No, i use independent rsa key, and config file inside .ssh directory
and this independent rsa public key of course matches DO account ssh key.

When i try to login through ssh, my fingerprints are different...
When i try to login through ssh, my fingerprints are different...

What do you mean?
The authenticity of host 'ip (ip)' can't be established.
RSA key fingerprint is 0a:22:b9:01:5f:2c:43:b4:5d:db:ba:ec:7c:76:fe:cd.
Are you sure you want to continue connecting (yes/no)?
And then i input 'yes' it asks for password :/
What user are you connecting as and if you input the password and run cat /home/user/.ssh/authorized_keys what does it output?

Please pastebin the output of tail /var/log/auth.log as well.
In the above, HostName is the IP address of the Droplet.

I have same problem. SSH key is not working. When I try ssh root@.... it keeps asking me for a root password.

I do not wont to change anything on server setup in order to use this (ssh keys).

If there is a option during setup that says use this key then why is it not working?

Have another answer? Share your knowledge.