Skip to content

Instantly share code, notes, and snippets.

@sidouglas
Created November 10, 2020 00:56
Show Gist options
  • Save sidouglas/558d75a85dffe81128349e0701085129 to your computer and use it in GitHub Desktop.
Save sidouglas/558d75a85dffe81128349e0701085129 to your computer and use it in GitHub Desktop.
Add a new SSH Key to a server digital ocean
your machine: ssh-keygen in ~/.ssh -> all the defaults
your machine: pbcopy < thenewkey.pub
On server: append to ~/.ssh/authorized_keys the new public key - either via gui or another machine
your machine: ssh-add the thenewkey ( this is the private key )
// another thing to try
your machine: sudo nano /etc/ssh/sshd_config
alter -> PasswordAuthentication yes
sudo service sshd reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment