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.
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.
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.
With a droplet using ssh-keys you will need to log in via ssh with your key the first time. You can then run
passwdto 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.
Want to learn more? Join the DigitalOcean Community!
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.
Sign up now
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
Accessoption. On that page you will have
Reset root passwordbutton. 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