-
-
Save sidouglas/558d75a85dffe81128349e0701085129 to your computer and use it in GitHub Desktop.
Add a new SSH Key to a server digital ocean
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 characters
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