Skip to content

Instantly share code, notes, and snippets.

@undefinedzain
Forked from SunDi3yansyah/ssh.md
Last active May 17, 2017 23:23
Show Gist options
  • Save undefinedzain/6c7dad87ca10a3a8032f802e15663a4f to your computer and use it in GitHub Desktop.
Save undefinedzain/6c7dad87ca10a3a8032f802e15663a4f to your computer and use it in GitHub Desktop.
Set Up Git & Generating an SSH key
git config --global user.name "Undefined Zain"
git config --global user.email "[email protected]"
ls -al ~/.ssh
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment