Question

I am unable to use SSH keys

Posted August 29, 2014 4.7k views

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.

2 comments
  • 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.

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.

×
1 answer

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.

Submit an Answer