Skip to content

Instantly share code, notes, and snippets.

@kaskavalci
Created September 26, 2015 10:25
Show Gist options
  • Save kaskavalci/825d920bca83728c0f6b to your computer and use it in GitHub Desktop.
Save kaskavalci/825d920bca83728c0f6b to your computer and use it in GitHub Desktop.
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jurn/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/jurn/.ssh/id_rsa
Your public key has been saved in /home/jurn/.ssh/id_rsa.pub
$ cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$ chmod 600 authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment