Skip to main content
Improve formatting
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

I'm a new user of Jenkins. I'm trying to run a shell script as part of the build step in Jenkins. This script has a scpan scp command which transfers a .tar.tar file to a remote server.

When I run this script, it works fine and gives the desired output, but when it is executed through Jenkins I get an error:

"Host key verification failed.

lost connection."

Host key verification failed.
lost connection

Up until the scpscp command, the script executes successfully, then skips the scpscp step.

I can't even SSH or SCP through Jenkins to the remote server.

Please advise what can be done here? What are the required plugins to be installed for sshssh and scpscp?

I'm a new user of Jenkins. I'm trying to run a shell script as part of the build step in Jenkins. This script has a scp command which transfers a .tar file to a remote server.

When I run this script, it works fine and gives the desired output, but when it is executed through Jenkins I get an error:

"Host key verification failed.

lost connection."

Up until the scp command, the script executes successfully, then skips the scp step.

I can't even SSH or SCP through Jenkins to the remote server.

Please advise what can be done here? What are the required plugins to be installed for ssh and scp?

I'm a new user of Jenkins. I'm trying to run a shell script as part of the build step in Jenkins. This script has an scp command which transfers a .tar file to a remote server.

When I run this script, it works fine and gives the desired output, but when it is executed through Jenkins I get an error:

Host key verification failed.
lost connection

Up until the scp command, the script executes successfully, then skips the scp step.

I can't even SSH or SCP through Jenkins to the remote server.

Please advise what can be done here? What are the required plugins to be installed for ssh and scp?

deleted 55 characters in body
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264

I'm a new user of Jenkins.I'm I'm trying to run a shell script as part of the build step in Jenkins. This script has a scp command which transfers a .tar file to a remote server.

Although whenWhen I run this script, it works fine and gives the desired output, Butbut when it is executed through Jenkins I get an error "Host key verification failed. lost connection.":

"Host key verification failed.

lost connection."

UptoUp until the scp command, the script executes successfully and, then skips the scp step.

I cantcan't even SSH or SCP through Jenkins to the remote server.

Please advise what can be done here? What are the required plugins to be installed for ssh and scp? I'm Looking for some immediate help here. Thanks in advance.

I'm a new user of Jenkins.I'm trying to run a shell script as part of the build step in Jenkins. This script has a scp command which transfers a .tar file to a remote server.

Although when I run this script it works fine and gives the desired output, But when it is executed through Jenkins I get an error "Host key verification failed. lost connection."

Upto the scp command the script executes successfully and skips the scp step.

I cant even SSH or SCP through Jenkins to the remote server.

Please advise what can be done here? What are the required plugins to be installed for ssh and scp? I'm Looking for some immediate help here. Thanks in advance.

I'm a new user of Jenkins. I'm trying to run a shell script as part of the build step in Jenkins. This script has a scp command which transfers a .tar file to a remote server.

When I run this script, it works fine and gives the desired output, but when it is executed through Jenkins I get an error:

"Host key verification failed.

lost connection."

Up until the scp command, the script executes successfully, then skips the scp step.

I can't even SSH or SCP through Jenkins to the remote server.

Please advise what can be done here? What are the required plugins to be installed for ssh and scp?

Source Link

Unable to scp in Jenkins

I'm a new user of Jenkins.I'm trying to run a shell script as part of the build step in Jenkins. This script has a scp command which transfers a .tar file to a remote server.

Although when I run this script it works fine and gives the desired output, But when it is executed through Jenkins I get an error "Host key verification failed. lost connection."

Upto the scp command the script executes successfully and skips the scp step.

I cant even SSH or SCP through Jenkins to the remote server.

Please advise what can be done here? What are the required plugins to be installed for ssh and scp? I'm Looking for some immediate help here. Thanks in advance.