【发布时间】:2013-09-25 21:10:44
【问题描述】:
我已经设置了一个 TeamCity 服务器,以使用“默认私钥”和 .ssh 中的配置文件从代理上的 GitHub 签出 src,如下所示:
Host git@github.com
IdentityFile ~/.ssh/id_rsa.shop
StrictHostKeyChecking no
Host github.com
IdentityFile ~/.ssh/id_rsa.shop
StrictHostKeyChecking no
这很好用。 现在我想从代理那里推。 但是,当我这样做时,由于用户输入,推送命令会挂起:
The authenticity of host 'github.com (192.30.252.130' can't be established.
RSA key fingerprints is 'xxx....xxx'
Are you sure you want to continue (yes/no)
Warning: Permently added '' to known hosts.
Connection closed by 192.30.252.130
Fatal: The remote end hung up unexpectedly.
如果我手动执行此操作,无论我输入是/否,它仍然会失败并拒绝权限。
“默认私钥”具有根据 github 的读/写权限,所以我有点失落。 我观察到的唯一一件事是 github ip 看起来非常本地,但是当代理刚刚完成代理端结帐时怎么会这样呢?这可能是防火墙吗?
谁能向我解释我缺少什么?
【问题讨论】: