com.jcraft.jsch.JSchException: Auth fail > > > >

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.

Ant scp task has an attribute called trust. If set to false (default) the host you connect to has to be set in the knownhosts file (you might have to create it) Another way is to explicitly set "trust = true". Check the documentation:

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Jenkins users - SCP plugin
    via by Unknown author,
  • 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.
    via by torbent,
  • Box used FTPS for connecting, but it's not working by using this plugin. [] Error log: {quote} 11:47:49 Archiving artifacts 11:47:52 [SCP] Connecting to 11:49:52 ERROR: Failed to upload files 11:49:52 com.jcraft.jsch.JSchException: connection is closed by foreign host 11:49:52 at com.jcraft.jsch.Session.connect( 11:49:52 at com.jcraft.jsch.Session.connect( 11:49:52 at be.certipost.hudson.plugin.SCPSite.createSession( 11:49:52 at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform( 11:49:52 at hudson.tasks.BuildStepMonitor$3.perform( 11:49:52 at hudson.model.AbstractBuild$AbstractBuildExecution.perform( 11:49:52 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps( 11:49:52 at hudson.model.Build$BuildExecution.post2( 11:49:52 at hudson.model.AbstractBuild$ 11:49:52 at hudson.model.Run.execute( 11:49:52 at 11:49:52 at hudson.model.ResourceController.execute( 11:49:52 at 11:49:52 Build step 'Publish artifacts to SCP Repository' changed build result to UNSTABLE 11:49:52 FTP: Connecting from host [bob-20130513] 11:49:52 FTP: Connecting with configuration [] ... 11:50:20 FTP: Disconnecting configuration [] ... 11:50:20 ERROR: Exception when publishing, exception message [IOException caught while copying.] 11:50:20 Notifying upstream projects of job completion 11:50:20 Finished: UNSTABLE {quote}
    via by Sam Xiao,
    • com.jcraft.jsch.JSchException: Auth fail > > > > at com.jcraft.jsch.Session.connect(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at be.certipost.hudson.plugin.SCPSite.createSession( at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(

    Users with the same issue

    Unknown visitor1 times, last one,
    jf-ast10 times, last one,
    jstrayer3 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    97 more bugmates