Created
November 8, 2012 22:33
-
-
Save enjoylife/4042264 to your computer and use it in GitHub Desktop.
Password-less SSH
This file contains 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
1. Generate keys on local machine: `ssh-keygen` | |
2. Create `~/.ssh` directory on remote machine | |
3. Copy `local:~/.ssh/id_rsa.pub` to `user@remote:~/.ssh/authorized_keys` | |
method a) `ssh-copy-id -i ~/.ssh/id_rsa.pub user@host` | |
method b) cat .ssh/id_rsa.pub | ssh user@host 'cat >> .ssh/authorized_keys' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment