I’ve installed a SSH key from the account settings
> security
. The public SSH key I’ve generated from an *Ubuntu *terminal on my *Windows *machine was successfully added to in my *DigitalOcean *account. Problem is that the password is still prompting despite having the SSH 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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Hi @daviddoi,
It’s possible the SSH key has not been deployed to your Droplet if you added it after created the droplet. Not to worry! You should be able to add it manually from your WebConsole OR you can enable password authentication, enter your droplet, paste in your Key and then disable password authentication again.
Either way you need to enter into your Droplet using DigitalOcean’s WebConsole. Once you do, you can add your public SSH key to the following file:
Add it as a new line but don’t forget to use the public key!
Alternatively, you can enable password authentication from your sshd_config which can be found at:
and change
to
Then restart sshd:
Then you should be able to enter the droplet using a password. From there you can paste in your Key and remove the password authentication again.
Regards, KFSys
Hello @daviddoi
You have to make sure that you have disabled the PasswordAuthentication in the SSH configuration file. Please edit the file “/etc/ssh/sshd_config” and disable it by setting it to “No”.
Find PasswordAuthentication and set it to no:
Best, Dikshith