A DO article states:
When you create a new VPS, you can choose to include that public key on the server. No root password will be emailed to you and you can log in to your new virtual private server from your chosen client. If you created a passphrase, you will be prompted to enter that upon login. (https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2)
The problem is the DO Droplet Console requires a root password.
thank you
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.
Here are the steps taken to resolve this issue based on ryanpq’s response.
The parameter for PasswordAuthentication should be commented out and set to yes. This will need to be uncommented and changed to no.
Should read:
Change to:
After saving changes, restart ssh
The command will prompt you for the new password and a duplicate new password to validate.
Now you can access the console from the droplet menu and have passwordless access via SSH.
Edit - follow this only if you can’t access SSH, if you can SSH follow @ryanpq answer
As you said when you create Droplet with public key included, root password will not be emailed. Without root password you can’t login into console. There is one workaround:
Go to DO Control Panel. Select your Droplet. From right menu select
Access
option. On that page you will haveReset root password
button. Click on it, it will power off your Droplet and root password will be emailed to you.With that password you can use console to login with username: root password: emailed one
Warning: it will power off your Droplet before resetting root password, so some downtime will occur. Process usually lasts only few seconds
With a droplet using ssh-keys you will need to log in via ssh with your key the first time. You can then run
passwd
to set a password for the root user. As long as your ssh configuration doesn’t allow for password authentication you can use the password you created to access the console (your droplet sees this as a local keyboard and display) but not to create a remote ssh connection.