git with ssh on Windows 10

Configuring git ssh access for bitbucket

Posted by Carl Berg on Sun, Feb 16, 2020 | Tags git, ssh, windows 10, bitbucket

I just repaved my home computer and though lost my old bitbucket ssh setup. Luckily Windows 10 now has a built in ssh agent so this is what i did:

> cd  ~\.ssh
ssh-keygen -t rsa -C "[email protected]"

Create a new file ~\.ssh\config:

Host bitbucket.org
  IdentityFile ~/.ssh/bitbucket

… so that bitbucket knows which ssh key to use.

And we’re ready to connect!
git clone [email protected]:my_user_name/my_repo.git

Resources