Question

I am unable to use SSH keys

  • Posted August 29, 2014

I followed the instructed provided by… https://www.digitalocean.com/community/articles/how-to-use-ssh-keys-with-digitalocean-droplets

…but I am still promoted for my password when I try to login.

Subscribe
Share

if you can sftp into your server, you could check the folder ~/.ssh/ and see if there is a file named authorized_keys

that file should have your pub key(s) you created on your home computer.

If they are all there, then you might want to check permissions on the ~./ssh folder on both your server and your home computer. Sometimes ssh wants the .ssh files locked down on your home computer…at least to 660 if not 600

And what if they’re not all there?

In my server’s authorized_keys file I see a line that says “ssh-rsa” followed by a string of code. That’s it.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

And what is they’re not all there?

In my server’s authorized_keys file I see a line that says “ssh-rsa” followed by a string of code. That’s it.