Skip to content

Instantly share code, notes, and snippets.

@cbillowes
Last active April 19, 2018 05:33
Show Gist options
  • Save cbillowes/d27a425fb83fd450c6aa99723fac4643 to your computer and use it in GitHub Desktop.
Save cbillowes/d27a425fb83fd450c6aa99723fac4643 to your computer and use it in GitHub Desktop.
Get SSH to work on Windows for Github and BitBucket

Get SSH to work on Windows for Github and BitBucket

Install git

  • I chose native Windows Secure Channel Library
  • Previously I was having a lot of trouble getting setup. I am not sure if the SSL/TLS library caused this or not.

Using Git Bash

  • ssh-keygen with passphrase
  • clip < <PUBLIC KEY> paste into Github or BitBucket settings
  • ssh -T [email protected] to add key to known_hosts

Multiple hosts

Config file

Host github.com
    IdentityFile ~/.ssh/github
	
Host bitbucket.org
    HostName bitbucket.org
    IdentityFile ~/.ssh/bitbucket
	
Host bitbucket.org-personal
    HostName bitbucket.org
    IdentityFile ~/.ssh/bitbucket-personal

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment