jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, exception message [Failed to connect session for config [xyz (target host)]. Message [verify: false]]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

In the .ssh folder you should have drwx (read/write/execute owner only) permissions, and in the authorized_keys file you should have rw (read/write owner only). You can use chmod 700 ~/.ssh and chmod 600 ~/.ssh/authorized_keys to fix it.

Solutions on the web

via Jenkins JIRA by ismail demirel, 1 year ago
Exception when publishing, exception message [Failed to connect session for config [xyz (target host)]. Message [verify: false]]
via Jenkins JIRA by ismail demirel, 1 year ago
Exception when publishing, exception message [Failed to connect session for config [xyz (target host)]. Message [verify: false]]
via Jenkins JIRA by Alex Domoradov, 1 year ago
Exception when publishing, exception message [Failed to connect SFTP channel. Message [java.io.IOException: channel is broken]]
via Google Groups by alex...@gmail.com (JIRA), 1 year ago
Exception when publishing, exception message [Failed to connect SFTP channel. Message [java.io.IOException: channel is broken]]
via Jenkins JIRA by Alex Domoradov, 1 year ago
Exception when publishing, exception message [Failed to connect SFTP channel. Message [java.io.IOException: channel is broken]]
via Google Groups by Jagan Kalluri, 2 years ago
Exception when publishing, exception message [Failed to connect session for config [xxxxxxx@xxxxxxxxxxx]. Message [Auth fail]]
jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, exception message [Failed to connect session for config [xyz (target host)]. Message [verify: false]]
at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:225)
at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:135)
at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:112)
at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51)
at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229)
at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205)
at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158)
at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64)
at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37)
at hudson.FilePath.act(FilePath.java:906)
at hudson.FilePath.act(FilePath.java:879)
at jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:138)
at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:111)
at jenkins.plugins.publish_over_ssh.BapSshBuilderPlugin.perform(BapSshBuilderPlugin.java:64)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
at hudson.model.Run.execute(Run.java:1593)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:247)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.