Effecting to get to your Digital Ocean dot and can’t move beyond Digital Ocean Permission Denied (public key)?
Digital Ocean Permission Denied (public key), This could be a direct result of different reasons, having some unsuitable public key section in your globule’s authorized keys, or making another public key on your structure which the drop doesn’t see yet.
At the point when the public key is made, see it using cat ~/.ssh/id_rsa.pub or override id_rsa.pub
with whatever name you gave the report. By and by copy that key.
Save the report and run organization sshd restart to restart the sshd uphold and apply the changes.
Password Authentication No.
Save the archive and restart sshd using organization sshd restart.
That is, you should now have the alternative to log in to the specialist without any issues.
Finally, Digital Ocean Permission Denied (public key), we recognize that you have some fundamental data on Ubuntu, SSH keys, request line editors (if not, just google it).
The vital framework of the going with progress:
Sign in to your Digital Ocean record and snap Access > Launch Console.
This will get you into your dot through the online terminal.
On the off chance that you’re sufficiently gutsy, you can effort to revive your SSH key clearly through this terminal, but the interface is a bit badly arranged and crushed on me. Digital Ocean Permission Denied (public key), Along these lines, I recommend the accompanying stages.
Then, at that point, Digital Ocean Permission Denied (public key), we’ll update the drop’s config record to allow SSH by username and secret expression. Note, the underneath will be a less secured plan, yet we’ll change it back in this way.
Using your #1 director (nano under), open the record:
sudo nano, etc/ssh/sshd_config
We’ll revive this record to slow down “PAM” (Pluggable Authentication Modules). Find this line and update to no:
UsePAM no
We’ll moreover refresh this to allow secret key approval:
Password Authentications yes
Save and leave the report, and reload SSH on your globule:
reload ssh
If you don’t have one presently on your close by machine, Digital Ocean Permission Denied (public key), set this up:
ssh-keygen - t RSA
Copy your key to the laborer, using your username and drop IP address rather than the demo underneath:
ssh-copy id username@droplet_IP
You should now have the alternative to complete the previously mentioned, and access your drop with your remarkable username and mystery word. Note, Digital Ocean Permission Denied (public key), if you have no idea about your username and mystery key, you should prefer to reset your root secret expression per the Digital Ocean docs.
Since you are on the course of action with SSH keys, you can reset your config record back to its novel settings. You can either use the Digital Ocean terminal, Digital Ocean Permission Denied (public key), or SSH into your globule ssh username@droplet_IP.
Using your main director (nano underneath), open the record:
sudo nano, etc/ssh/sshd_config
Return this archive to turn PAM on:
UsePAM yes
Return secret word affirmation to off:
Password Authentication no
Save and leave the archive, and reload SSH on your drop:
reload ssh
Your drop should now be a good thought to go!