Skip to content

Instantly share code, notes, and snippets.

@christo16
Created December 13, 2010 15:15
Show Gist options
  • Save christo16/739077 to your computer and use it in GitHub Desktop.
Save christo16/739077 to your computer and use it in GitHub Desktop.
OS X Create Saved SSH Keys
# local machine
$ cd ~/.ssh
$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/Users/user/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/user/.ssh/id_dsa.
Your public key has been saved in /Users/user/.ssh/id_dsa.pub
$ scp ~/.ssh/id_dsa.pub admin@some-remote-server:~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment