1
我通過chef
安裝一個新的服務器和應對ssh私鑰和公鑰到它。捆綁安裝從一個新的服務器由於git ssh密鑰錯誤
創建它之後,我通過jenkins
將應用程序部署到它並運行bundle install
。失敗是由於
Host key verification failed.
fatal: The remote end hung up unexpectedly
如果我ssh到服務器並運行bundle install
命令自己,我得到提示
The authenticity of host 'bitbucket.org (104.192.143.1)' 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)?
同爲github上
The authenticity of host 'github.com (192.30.252.129)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
我按是,捆綁完成。最重要的是,如果我再次運行jenkins作業,那麼這個包會成功完成。
任何想法如何通過jenkins自動批准這些遠程服務器的真實性?