As an alternative to making an ssh connection to your Droplet on DigitalOcean, they offer a "Console" which is a VNC connection, akin to plugging a monitor and keyboard into your virtual server.
When opening such a Console window, I am prompted for a login
and then password
.
Having created my Droplet with a SSH key, I do not know what the login
might be, nor what the password
might be.
➥ How does one login via the Console to a Droplet on DigitalOcean?
My Droplet is running FreeBSD 12, if that matters.
I have seen the documentation page, How to Regain Access to Droplets using the DigitalOcean Droplet Console. That page does have a section Log In with the Console. But little explanation of the login name or password is given. It mentions:
At the login prompt, enter the user you want to log in as. This will typically be the root user or a user configured with sudo privileges.
But for my new FreeBSD droplet, root
did not work as a login name.
If I use the freebsd
user, I am stuck at the prompt for a password. There is no password established, so Catch-22.
login: freebsd
Password:
Login incorrect
login:
…and on it goes.
tl;dr
On your Droplet admin page, Access tab, click
Reset Root Password
button to establish a password for theroot
user on your FreeBSD system.Details
By default neither of your given users on FreeBSD,
freebsd
&root
, have a password established. This effectively disables remote logins via SSH, good for security.Your use of SSH keys automatically logs you in as either user.
…or…
If you have not gone out of your way to establish passwords for either user, then you must use the
Reset Root Password
button on theAccess
tab of your Droplet admin page on DigitalOcean.com. This button will create a password for theroot
user on your FreeBSD VM if a password does not exist. If a password does exist, the old will be replaced by a new password.After establishing the password, then use the other button on that same panel of the Droplet admin page on
Access
tab:Launch Console
button. This creates a server-local shell session, as if you plugged a keyboard & mouse into the server box. You see the session remotely via a VNC session displayed in your web browser.The documentation says that the default username for FreeBSD droplets is
freebsd
.