SSH、Git与Sourcetree

电脑生成公私钥

ssh-keygen -t rsa

将公钥加入git服务器

测试git是否连接成功

ssh -T git@githup.com -p port

正常使用就可以了