我正在尝试使用jenkins构建服务器ssh到我的部署服务器运行脚本,但是它给出了错误:
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/test/workspace
[workspace] $ /bin/sh -xe /tmp/hudson2847284723784326.sh
+ ssh user@serverIP
Pseudo-terminal will not be allocated because stdin is not a terminal.
Host key verification failed.
Build step 'Execute shell' marked build as failure
Finished: FAILURE
我在jenkins中使用Execute shell build实用程序。使用的步骤是:
我可以在服务器上手动登录而不使用密码。我使用这篇文章来设置密码少登录:http://www.linuxproblem.org/art_9.html
请让我知道我做错了什么。