By N
I want to be able to:
I do not see how else I can use ssh-key pair on the root account and still get the benefit of being able to login via Digital Oceans virtual Console that they give in their browser.
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!
If you have setup a ssh key pair on Digital Ocean and used it when creating the droplet, then your SSH is configured to only accept public key authentication for your root user and no password is assigned to root, to set it up login via ssh as root and issue this command passwd to change password.
If you did not use a key pair when creating the droplet, then a password will be generated for root account and you change it when logging in for the first time, here you need to do the following to disable using passwords when connecting with SSH:
ssh-keygenssh-copy-id root@<droplet_ip>.PasswordAuthentication no in /etc/ssh/sshd_config.PubkeyAuthentication yessudo service ssh restartNow you can access your droplet over SSH with your public key as root and login to KVM console as root with your password.
Hope this helps.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.