git over ssh

(updated: )

In order to access github and bitbucket in ssh protocol, you can create ~/.ssh/config and add the following lines into it.

1
2
3
4
5
6
7
Host github.com
Hostname ssh.github.com
Port 443
Host bitbucket.org
Hostname altssh.bitbucket.org
Port 443
IdentityFile ~/.ssh/id_rsa