Skip to content

Instantly share code, notes, and snippets.

@SunDi3yansyah
Last active July 24, 2019 09:41
Show Gist options
  • Save SunDi3yansyah/b9c7831bfbc8b6099161 to your computer and use it in GitHub Desktop.
Save SunDi3yansyah/b9c7831bfbc8b6099161 to your computer and use it in GitHub Desktop.
Set Up Git & Generating an SSH key
git config --global user.name "SunDi3yansyah"
git config --global user.email "sundi3yansyah@gmail.com"
ls -al ~/.ssh
# if not exist
mkdir ~/.ssh
ssh-keygen -t rsa -b 4096 -C "sundi3yansyah@gmail.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub

Add id_rsa.pub to => https://github.com/settings/keys

@SunDi3yansyah
Copy link
Author

SunDi3yansyah commented May 26, 2017

Copy passphrase for auto login

cd ~/.ssh
cp id_rsa id_rsa.org
openssl rsa -in id_rsa.org -out id_rsa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment