My Profile Photo

Ionut Gavrilut


DevOps Enthusiast | Linux System Administrator | Certified Jenkins Engineer


Jenkins Publish Over SSH Plugin fails after SLES Upgrade

Jenkins Publish Over SSH Plugin fails after an upgrade from SLES 11 to 12. This results in unstable jobs when you need to transfer files via this plugin. When testing the connection appears:

jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect SFTP channel. Message [java.io.IOException: inputstream is closed]]

This is happening because of sftp, which is misconfigured after the system upgrade. To solve this, you need change in /etc/ssh/sshd_config on the remote server this line:

Subsystem       sftp    /usr/lib64/ssh/sftp-server

to this:

Subsystem       sftp    /usr/lib/ssh/sftp-server