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?
 
                 
                 
                