When I am doing ssh to a remote windows machine from the linux CLI running the following command it works:
ssh -tt username@ip_address
However when I am running the same via Jenkins, it throws the following error:
+ ssh -tt username@ip_address
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive)
So what could be going wrong? I believe this has nothing to do with the ssh-keys because manually running the above command from the CLI works but fails only from the Jenkins.
I am new to Jenkins and hence don't have much idea about the details of Jenkins. Please share what could be going wrong.
Thanks.