Report this

What is the reason for this report?

Why I can't loggin with putty

Posted on March 20, 2017

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:



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!

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.

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

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.