Using SSH to connect with Github

2022-06-05

Using SSH to connect with Github

Creat your own dir for ssh

1
2
3
mkdir ~/.ssh

chmod 700 ~/.ssh

Generate your Key

1
2
3
4
5
6
cd ~/.ssh

ssh-keygen -t rsa -b 4096 -C "your@gmail.com"

# copy item from id_rsa.pub
cat id_rsa.pub

Set up your Github



Paste your content of the id_rsa.pub to here

Test it

1
ssh -T git@github.com
1
git@github.com:krnick/your_repo.git