更改为jenkins
用户并手动运行命令:
git ls-remote -h git@bitbucket.org:person/projectmarket.git HEAD
首次通过SSH连接到新主机时,您将获得标准的SSH警告:
The authenticity of host 'bitbucket.org (207.223.240.181)' can't be established.
RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.
Are you sure you want to continue connecting (yes/no)?
键入yes
,然后按Enter。bitbucket.org
现在,用于的主机密钥将添加到~/.ssh/kNown_hosts
文件中,您将不再在Jenkins中收到此错误。