【发布时间】:2015-06-11 13:45:48
【问题描述】:
将公钥添加到bitbucket 帐户后,ssh -T git@bitbucket.org 返回(在 Windows 中):
The authenticity of host 'bitbucket.org (131.103.20.167)' can't be established.
RSA key fingerprint is 65:8c:1b:f2:6f:91:6b:5c:3b:ec:4a:46:46:74:7z:40.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'bitbucket.org' (RSA) to the list of known hosts.
logged in as myusername.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
我们确认bitbucket.org 已添加到known_hosts。 cap deploy 命令返回:
Host key verification failed.
fatal: The remote end hung up unexpectedly
我们在deploy.rb 文件中添加了以下两行:
ssh_options[:forward_agent] = true
default_run_options[:pty] = true
现在cap deploy 返回错误:
Permission denied (publickey).
密钥不受密码保护。如果密钥被bitbucket接受(ssh -T返回正确的信息),为什么我们仍然有Permission denied的错误。
【问题讨论】: