Set up SSH access to manage your GitHub repository from your local machine
  1. Generate SSH Key ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  2. Add SSH key to SSH agent eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa
  3. Display SSH key (copy this key to GitHub SSH settings) cat ~/.ssh/id_rsa.pub
  4. Configure git to use SSH for GitHub git remote set-url github git@github.com:username/std-portal.git
  5. Go to SSH and GPG Keys page on GitHub.
  6. Paste the SSH key here.
  7. Push using SSH # git push master
 

Leave a Reply

Your email address will not be published. Required fields are marked *