Question

Why I can't loggin with putty

I created a droplets ,it is centos and with the SSH key; but i can’t login by the putty with my private key.

Using username “root”. Server refused our key Using keyboard-interactive authentication. Password:

Subscribe
Share

I am having the same problem, a few hours ago it was working ok, I already tried reinstalling SSH using the online console, also tried reinstalling putty, but still does not work


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.

Hello all,

I will recommend checking our tutorials on How to Connect to your Droplet with PuTTY on Windows and How to Create SSH Keys with PuTTY on Windows

https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/putty/

https://docs.digitalocean.com/products/droplets/how-to/add-ssh-keys/create-with-putty/

Regards, Alex

Alright, this is the way I solved it:

1.- Paste your PUBLIC ssh key in http://pastebin.com and get the raw version of your paste, example: http://pastebin.com/raw/Xb1PY53SD (If you dont remember your public key, simply load your private key into PuTTYgen and copy the content that says “public key for pasting into OpenSSH authorized_keys file”)

2.- Then login to the online console and find your authorized_keys file, it is by default in “~/.ssh/authorized_keys” (the ~ stands for your HOME enviroment variable in my case it is “/root”)

3.- In the folder where is your authorized_keys file execute this command: wget ' http://pastebin.com/raw/your_raw_id' -O authorized_keys (remember to replace the raw pastebin link with your own)

Hope it helps