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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.