Created
July 7, 2016 16:36
-
-
Save wrannaman/57e801a4fabda04d48e89dd72c93473b to your computer and use it in GitHub Desktop.
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
// check for existing keys | |
ls -al ~/.ssh | |
// generate keys | |
ssh-keygen -t rsa -b 4096 -C "andrewpierno@gmail.com" | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_rsa | |
cat ~/.ssh/id_rsa.pub | |
// config | |
nano ~/.ssh/config | |
// -- in config file -- | |
Host f.github.com | |
Hostname github.com | |
IdentityFile /home/ec2-user/.ssh/id_rsa | |
User git | |
git clone f.github.com:wrannaman/audience_f.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you get an error like 'Bad owner or permissions on /home/ec2-user/.ssh/config'
do
$ chmod 600 ~/.ssh/config