这是我的shell脚本:
scp -r -i ~/.ssh/id_rsa_mbox /home/mbox/Desktop/qtworkspace/mbox_gui/Debug.tar.gz mbox@111.11.11.118:/mbox/deployment/mbox_gui/
..............................
Started by user Vikash
Building on master in workspace /var/lib/jenkins/jobs/Copy_Mbox_Gui_Files/workspace
next nodes: [][workspace] $ /bin/sh -xe /tmp/hudson6656909050940929806.sh
+ scp -r -i /home/mbox/.ssh/id_rsa_mbox /home/mbox140/Desktop/qtworkspace/mbox_gui/Debug.tar.gz mbox@111.11.11.118:/mbox/deployment/mbox_gui/
Host key verification failed.
lost connection
Build step 'Execute shell' marked build as failure
Finished: FAILURE
.................. 在Ubuntu上
答案 0 :(得分:2)