Question

Trouble using Putty/Windows with Ubuntu 20.4 and public key encryption

Have tried several methods to upload my public key including the “How to Upload SSH Public Keys to a DigitalOcean Team” from the “how to” guide. Have also tried setting the authorized_keys file manually with no avail. I am using Windows 11 with Putty release Release 0.74.
I also followed thus guide https://system.cs.kuleuven.be/cs/system/security/ssh/setupkeys/putty-with-key.html Both methods give the error on the putty terminal window as “server refused our key”

and Putty says "No supported authentication methods available (server sent: Public key).


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.

alexdo
Site Moderator
Site Moderator badge
February 24, 2023

Hello @malrixon

There is something I would like to add on top of what has already been mentioned.

It is always helpful to try connecting using another client in order to determine if the issue is within the client configuration or it is local or droplet side issue.

Regards

Thank you for your response but I found the problem was with my old version of putty. I upgraded to 0.78 and that fixed the problem.

Bobby Iliev
Site Moderator
Site Moderator badge
February 19, 2023

Hi there,

This might also happen if you are using an incorrect username, by default you could use the root user and later on create another sudoer user.

I could also suggest following the steps here on how to connect to your Droplet with PuTTY on Windows:

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

Let me know how it goes!

If this is still failing, can you confirm if this is a new Droplet or an existing one that you are trying to connect to?

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.