Last active
June 6, 2016 07:09
-
-
Save rutvij-pandya/a4de68ca83d5e43e3669117ef8751f4f to your computer and use it in GitHub Desktop.
AWS Part 1 - SSH Key generation
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
# First step to AWS - learn to generate SSH key for servers | |
Generate Key in Mac | |
>> ssh-keygen | |
Give path & key name | |
>> Enter file in which to save the key (/Users/username/.ssh/id_rsa): /Users/username/.ssh/test_ssh | |
Enter password (optional) | |
>> Enter passphrase (empty for no passphrase): | |
>> Enter same passphrase again: | |
"Your identification has been saved in /Users/username/.ssh/test_ssh. | |
Your public key has been saved in /Users/username/.ssh/test_ssh.pub." | |
Change permission to make it accessible | |
>> chmod 600 test_ssh | |
>> chmod 600 test_ssh.pem | |
Add key to local key collection | |
>> ssh-add -k ~/.ssh/test_sshr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment