Question

How To Use SSH Keys to login console?

  • Posted on June 10, 2014
  • rmalenkoAsked by rmalenko

I have created droplet without key. How I can connect the added key to my actual droplets?

BR


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Do not forget check permissions 700 on directory and 600 on files and check to right owner. Directory /.ssh/ and all files should have owner who is owner home directory. It is usually is a login name.

Hi! Thank you for answer. I have done it, however still not works. Doing many times in on other servers, I always had successful result. Can it be assumed that not working because I have created the droplet without key? Might there a method to assign a key for the droplet?

I have followed the steps required in order to get my SSH key going

  • I created the directory .ssh and the file authorized_keys under home/usr

  • I copied the contents of the public key straight from PuttyGen and pasted it into the file home/usr/.ssh/authorized_keys

  • I configured putty to use the correct private key file located on my windows machine

When attempting to log in I get the message “Server refused our key” and then I’m prompted with a login. I have no idea what I’m doing wrong here…