I was facing the similar issue today, i pasted the public key of the server in the authorized key section, by doing this the issue was resolved for me. Documentation followed: https://plugins.jenkins.io/publish-over-ssh/ enter image description here