Last active
December 16, 2018 16:38
-
-
Save SBNBON005/14958fef939078c1cc40823d0443f805 to your computer and use it in GitHub Desktop.
Revisions
-
SBNBON005 renamed this gist
Dec 16, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
SBNBON005 created this gist
Dec 16, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ 1) Login to your Digitalocean dashboard 2) Launch the droplet console 3) Login to the droplet using root credentials. If you've forgotten your root password then reset it from the dashboard (an email will be sent to you with a temp password). 4) Once you are in then open `/etc/ssh/sshd_config` file and edit this entry `PasswordAuthentication no` to `PasswordAuthentication yes`. 5) Save changes. 6) Reload configuaration `service ssh reload` 7) Now you can login to your droplet from your machines terminal. `ssh root@droplet-ip` 8) copy your new ssh keys to into file `~/.ssh/authorized_keys`: https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 9) Clean up: change back to `PasswordAuthentication no`