Created
December 13, 2010 15:15
-
-
Save christo16/739077 to your computer and use it in GitHub Desktop.
OS X Create Saved SSH Keys
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
# 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