小编Fau*_*ter的帖子

无法使用IPv6通过SSH推/拉到bitbucket

当我可以推/拉到bitbucket:

  • 从我的工作电脑通过ssh键 id_rsa_bitbucket_work
  • 从我的笔记本电脑,但只有通过ssh键登录VPN(Cisco AnyConnect)id_rsa_bitbucket.我的VPN有一个静态IP.
  • 始终使用https.

当我不能推/拉到bitbucket时:

  • 从我的笔记本电脑随时通过ssh键连接VPN ida_rsa_bitbucket.
  • 当我的工作网络网络上的笔记本电脑不在VPN上时,即使我名义上在同一个网络上,我也会使用VPN.

我的适当条目~/.ssh/config是:

Host bitbucket
     HostName bitbucket.org
     User git
     IdentityFile ~/.ssh/id_rsa_bitbucket
Run Code Online (Sandbox Code Playgroud)

无论我正在经历什么样的网络/ VPN,通过SSH连接到github存储库始终有效.

我检查过以确保:

  • 我的SSH代理正在运行并且加载了正确的密钥.
  • 无论VPN设置如何,我的SSH代理都会分发相同的密钥.

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)

git ssh vpn bitbucket ipv6

12
推荐指数
1
解决办法
1977
查看次数

标签 统计

bitbucket ×1

git ×1

ipv6 ×1

ssh ×1

vpn ×1