ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [23]]

Console Output

SSH: Connecting from host [localhost.localdomain]
SSH: Connecting with configuration [jenkins] …
SSH: EXEC: completed after 608 ms SSH: Disconnecting configuration [jenkins] …

ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [23]] Build step ‘Send files or execute commands over SSH’ changed build result to UNSTABLE Finished: UNSTABLE

Need help on this, please!

~Wasim

Hi there,

“it doesn’t work” is always hard to remote debug. Try to always include these 3 things.

  1. what did you try? (Code samples, command lines, screenshots, videos, etc)
  2. what did happen? (Error messages, description, outputs, stuff)
  3. what did you expect to happen?

Otherwise, it’s hard for us to get into your context and you’ll have to have someone who is exactly knowledgeable come along.

Hello Halkeye,

I deployed 3 VMs using VMware fusion.

  • Jenkins VM
  • Ansible VM
  • Webserver VM

I made sure all 3 are interconnected with ssh-keygen.

I have set up a GitHub account and created a repository and created an index.html file. This repository webhook is setup and connected with Jenkins.

I have confiured Junekins credentials and connected it with Gthub.

I have configured ‘Publish over ssh’ plugin on my Jenkins account.

I have configured my Jenkins with rsync command and added both my jenkins and asnsible machine details.

When i run the build or add something new to git i expect it to complete the job with no error, but i am getting this error!