SSH keys can only be added to Droplets on Droplet creation. You can add it to admin panel, but it’s only to use it on Droplet creation, restart will not add it automatically.
Make sure you type password correctly. Don’t paste it to terminal, type it yourself (you can paste it too but make sure you use right click if using Putty, or CTRL+SHIFT+V if using Linux/Mac terminal).
If you successfully changed password via Web Console, use that new password for login.
You can verify from Web Console is Password authentication and Permit root login enabled (for root password login).
Go to Console, login and open SSH config:
- nano /etc/ssh/sshd_config
PasswordAuthentication. Make sure it is not commented (it doesn’t have
# in front of line) and is set to
PermitRootLogin and make sure it is not commented and is set to
Now we need to restart SSH so it reflects changes:
Exit console and try to log in from your computer using SSH.
From there, you can add new key. You can also use
ssh-copy-id if you are using Linux. It’ll add keys for you.
How To Configure SSH Key-Based Authentication on a Linux Server could help you with this.
SSH, or secure shell, is the most common way of administering remote Linux servers. Although the daemon allows password-based authentication, exposing a password-protected account to the network can open up your server to brute-force attacks. In this guide, we demonstrate how to configure your server with SSH keys, which is the recommended authentication method. These are much more difficult for attackers to work around, giving you a more secure login mechanism.