Skip to content

Instantly share code, notes, and snippets.

@kngvamxx
Created May 4, 2020 09:53
Show Gist options
  • Select an option

  • Save kngvamxx/dfd44d4d00afffd1a98331f6ad590a6b to your computer and use it in GitHub Desktop.

Select an option

Save kngvamxx/dfd44d4d00afffd1a98331f6ad590a6b to your computer and use it in GitHub Desktop.
generating ssh key for git
# Part: 1
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
sudo git config --global user.name "YourName"
sudo git config --global user.email [email protected]
git --version
git config --list
Part: 2
sudo -i
ls -al ~/.ssh
# YOu will see ls: cannot access '/root/.ssh': No such file or directory
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
ls -al ~/.ssh
cat /root/.ssh/id_rsa.pub
# copy content and add a new SSH key to your GitHub account as says here- https://help.github.com/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account
Part: 3
# we will use this repository https://github.com/SchoolOfFreelancing/BackOffice
# for clone
git clone https://github.com/SchoolOfFreelancing/BackOffice.git
part4
#Testing your SSH connectionssh
ssh-T [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment