n/a
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Heya,
The default option is to have the password authentication disabled. This can be changed at any time as Bobby mentioned.
Also, you can use the recovery console to regain access to your droplet in case of emergency or when normal ssh-client access is not available.
Regards
Hi there,
As mentioned already, by default DigitalOcean Droplets have their
PasswordAuthentication
turned off and are using SSH keys for connection.But if you’ve made any chances and want to determine the authentication system of your DigitalOcean Droplet, you’ll primarily need to check the SSH configuration:
Login to your Droplet:
Examine SSH Configuration:
cat /etc/ssh/sshd_config
.PasswordAuthentication
. If it’s set toyes
, password authentication is enabled.PubkeyAuthentication
. If it’s set toyes
, SSH key authentication is enabled.You can also follow the steps here on how to recover from a lost SSH key:
Hope that this helps!
Best,
Bobby
Heya,
By default DigitalOcean Droplets have their PasswordAuthentication turned off and are using SSH keys for connection.
On Droplet creation you are asked to provide your SSH key otherwise the Droplet can’t be created.
Having said that, if you don’t have that SSH key you can use the DigitalOcean Web Console or Recovery Console to gain access to your Droplet and add a new SSH key or Turn on PasswordAuthentication:
https://docs.digitalocean.com/products/droplets/how-to/recovery/recovery-console/