Streamline SSH with Git for Windows

From Git Bash, generate a new SSH key. Note the key location, e.g. (/c/users/shlut/Documents/.ssh/id_rsa).

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

From Git Bash, add the SSH key to the SSH Agent.

eval $(ssh-agent -s)  
ssh-add /c/users/shlut/Documents/.ssh/id_rsa  

Add the new SSH Key to your GitHub account.

  1. Profile
  2. Settings
  3. SSH and GPG Keys
  4. New SSH Key
  5. Paste the contents of id_rsa.pub and give it a name (e.g. Work Computer).

See also: