I tried following along with this article 'https://www.digitalocean.com/community/articles/how-to-create-ssh-keys-with-putty-to-connect-to-a-vps' and this article 'https://www.digitalocean.com/community/articles/initial-server-setup-with-ubuntu-12-04' to set up ssh with my already existing droplet. Every time I go to putty to ssh in, I get a 'server refused our key' message and then I am asked to enter in my password. I must be doing something wrong or have the wrong configuration but I'm not sure what it is. I have re-read both articles many times in order to figure out where I am (possibly) missing something.
- irving14788January 2, 2016Hi, I have the same problem, How did you fix it?Regards.
Irving Tristan. - stevepatcoJanuary 11, 2016
- nanuvenJanuary 16, 2016
- nanuvenJanuary 16, 2016
- stevepatcoJanuary 16, 2016
- esauhernandezFebruary 2, 2016
- YogeshCJadhavFebruary 8, 2016I could able to login using SSH and here are the tips to make it work. If you use puttygen to generate the keys, copy the contents from the dialog box displayed at the end from puttygen. You will notice that the contents of the saved file are different from the dialog box.For e.g. the contents of saved file will be something like
“
—- BEGIN SSH2 PUBLIC KEY —-
Comment: 'rsa-key-20160208”
XXXXXX
XXXXX.....
—- END SSH2 PUBLIC KEY —-
“while the dialog box will look something like
”
ssh-rsa XXXX…… rsa-key-20160208
“Later follow all the steps for client as specified in
https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-putty-on-digitalocean-droplets-windows-users#setting-up-an-ssh-session-with-ssh-keys-in-puttyPuTTY is a Windows program used to establish SSH sessions with Linux servers. In this guide, we'll demonstrate how to use PuTTY to create SSH key pairs to use within the DigitalOcean interface. You can then easily create servers that you can log into without a password. - BrinmanAugust 18, 2016Thanks YogeshCJadhav! That was the problem for me (used Puttygen, and I grabbed the wrong output).
- edasseryAugust 13, 2018Yogesh C Jadhav! You saved me… Been fighting with this non-root user SSH problem for more than two hours now. Thank you.
For SSH Client – Terminal (Ubuntu) & Putty (Windows) Establishing the SSH connection. Prior to establishing a secure remote connection with a Ubuntu server using SSH, you have to meet some basic requirements. Following are some prerequisites: The remote server must be powered on and have a stable network connection.