soniya.rayabagi
Thu Jan 18 2024
Setting Up SSH Authentication in Git for GitHub
- Generate SSH Key Pair:
ssh-keygen -t rsa -b 4096 -C "<mailto:your_email@example.com|your_email@example.com>"
cat ~/.ssh/id_rsa.pub
2. Start the SSH Agent:eval "$(ssh-agent -s)"
- Add SSH Key to the SSH Agent:
ssh-add ~/.ssh/id_rsa
- Add SSH Key to GitHub Account:
5. Test SSH Connection to GitHub:
ssh -T <mailto:git@github.com|git@github.com>
- Output:
Hi soniyaraibagi! You've successfully authenticated, but GitHub does not provide shell access.