Report this

What is the reason for this report?

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

Posted on February 16, 2023

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).



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.

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

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.

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

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.