Skip to content

Instantly share code, notes, and snippets.

@rutvij-pandya
Last active June 6, 2016 07:09
Show Gist options
  • Save rutvij-pandya/a4de68ca83d5e43e3669117ef8751f4f to your computer and use it in GitHub Desktop.
Save rutvij-pandya/a4de68ca83d5e43e3669117ef8751f4f to your computer and use it in GitHub Desktop.
AWS Part 1 - SSH Key generation
# 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