com.jcraft.jsch.JSchException: Auth fail

Jenkins JIRA | Mykola Nikishov | 6 years ago
  1. 0

    I consistently get this error when scp plugin tries to upload: {quote} Recording fingerprints Sending e-mails to: <me> [SCP] Connecting to <hostname> ERROR: Failed to upload files com.jcraft.jsch.JSchException: Auth fail at com.jcraft.jsch.Session.connect( at com.jcraft.jsch.Session.connect( at be.certipost.hudson.plugin.SCPSite.createSession( at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform( at hudson.tasks.BuildStepMonitor$3.perform( at hudson.model.AbstractBuild$AbstractRunner.perform( at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps( at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps( at hudson.model.Build$RunnerImpl.post2( at hudson.model.AbstractBuild$ at at at hudson.model.ResourceController.execute( at Finished: UNSTABLE {quote} This only happens when uploading to a host that's behind a firewall. It can succesfully upload to a host on the same network as the Hudson master and slave. I can manually, using "system" scp, upload files to the host through the firewall with no problems. The "auth.log" file on the remote host is not touched by Hudson's attempts to upload, indicating that it's not the host itself that denies access.

    Jenkins JIRA | 6 years ago | torbent
    com.jcraft.jsch.JSchException: Auth fail
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. abrazeneb 1 times, last 2 months ago
96 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.jcraft.jsch.JSchException

    Auth fail

    at com.jcraft.jsch.Session.connect()
  2. JSch
    1. com.jcraft.jsch.Session.connect(
    2. com.jcraft.jsch.Session.connect(
    2 frames
  3. be.certipost.hudson
    1. be.certipost.hudson.plugin.SCPSite.createSession(
    2. be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(
    2 frames