当我可以推/拉到bitbucket:
id_rsa_bitbucket_workid_rsa_bitbucket.我的VPN有一个静态IP.当我不能推/拉到bitbucket时:
ida_rsa_bitbucket.我的适当条目~/.ssh/config是:
Host bitbucket
HostName bitbucket.org
User git
IdentityFile ~/.ssh/id_rsa_bitbucket
Run Code Online (Sandbox Code Playgroud)
无论我正在经历什么样的网络/ VPN,通过SSH连接到github存储库始终有效.
我检查过以确保:
ssh -Tv bitbucket未登录VPN时的输出为:
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/fcarter/.ssh/config
debug1: /Users/fcarter/.ssh/config line 1: Applying options for bitbucket
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: /etc/ssh/ssh_config line 56: Applying options for *
debug1: Connecting to bitbucket.org [2401:1d80:1010::150] port 22.
debug1: Connection established. …Run Code Online (Sandbox Code Playgroud)