author avatar

soniya.rayabagi

Thu Jan 18 2024

Setting Up SSH Authentication in Git for GitHub

  1. 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)"
  2. Add SSH Key to the SSH Agent: ssh-add ~/.ssh/id_rsa
  3. Add SSH Key to GitHub Account: 5. Test SSH Connection to GitHub: ssh -T <mailto:git@github.com|git@github.com>
  4. Output: Hi soniyaraibagi! You've successfully authenticated, but GitHub does not provide shell access.