Created
August 27, 2014 12:58
-
-
Save Polanco08/c01cc543947f945a9494 to your computer and use it in GitHub Desktop.
Adding SSH Key
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
Step 1: Check if an SSH keys exist | |
$ cd ~/.ssh | |
$ ls *.pub | |
Step 2: Generate a new SSH key | |
$ ssh-keygen -t rsa -C "[email protected]" | |
Generating public/private rsa key pair. | |
Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter] | |
Here you can optionally enter in a passphrase which will provide an added layer of security. Whenever you use the SSH key for access you will be prompted to enter it, otherwise you can leave this blank. | |
Enter passphrase (empty for no passphrase): [Type a passphrase] | |
Enter same passphrase again: [Type passphrase again] | |
Now your SSH key will be generated. | |
Your identification has been saved in /Users/your_username/.ssh/id_rsa. | |
Your public key has been saved in /Users/your_username/.ssh/id_rsa.pub. | |
The key fingerprint is: | |
01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db [email protected] | |
$ cat ~/.ssh/id_rsa.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment