com.jcraft.jsch.JSchException: Auth fail

MuleSoft JIRA | Syed Abuthagir | 4 months ago
  1. 0

    We are facing frequent 'Auth fail' issue when trying to connect Mule to SFTP server with correct username and password. Below are details.. ERROR 2016-07-25 21:49:30,184 [scheduler-fs_preservation_Worker-1] org.mule.transport.sftp.SftpClient: Error during login to user@sftp.com com.jcraft.jsch.JSchException: Auth fail at com.jcraft.jsch.Session.connect(Session.java:512) ~[jsch-0.1.53.jar:?] at com.jcraft.jsch.Session.connect(Session.java:183) ~[jsch-0.1.53.jar:?] at org.mule.transport.sftp.SftpClient.login(SftpClient.java:145) ~[mule-transport-sftp-3.7.0.jar:3.7.0] at org.mule.transport.sftp.SftpConnectionFactory.createClient(SftpConnectionFactory.java:108) ~[mule-transport-sftp-3.7.0.jar:3.7.0] at org.mule.transport.sftp.SftpConnector.createSftpClient(SftpConnector.java:190) ~[mule-transport-sftp-3.7.0.jar:3.7.0] at org.mule.transport.sftp.SftpConnector.createSftpClient(SftpConnector.java:173) ~[mule-transport-sftp-3.7.0.jar:3.7.0] at org.mule.transport.sftp.SftpReceiverRequesterUtil.getAvailableFiles(SftpReceiverRequesterUtil.java:72) ~[mule-transport-sftp-3.7.0.jar:3.7.0] at org.mule.transport.sftp.SftpMessageReceiver$2.doWork(SftpMessageReceiver.java:280) ~[mule-transport-sftp-3.7.0.jar:3.7.0] at org.mule.retry.policies.AbstractPolicyTemplate.execute(AbstractPolicyTemplate.java:63) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.transport.sftp.SftpMessageReceiver.doConnect(SftpMessageReceiver.java:269) ~[mule-transport-sftp-3.7.0.jar:3.7.0] at org.mule.transport.AbstractMessageReceiver.connectHandler(AbstractMessageReceiver.java:447) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.transport.AbstractTransportMessageHandler.connect(AbstractTransportMessageHandler.java:214) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.transport.AbstractConnector.registerListener(AbstractConnector.java:1272) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.endpoint.DefaultInboundEndpoint.start(DefaultInboundEndpoint.java:104) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.construct.AbstractFlowConstruct.startIfStartable(AbstractFlowConstruct.java:325) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.construct.AbstractPipeline.doStart(AbstractPipeline.java:353) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.construct.Flow.doStart(Flow.java:90) ~[mule-core-3.7.0.jar:3.7.0]

    MuleSoft JIRA | 4 months ago | Syed Abuthagir
    com.jcraft.jsch.JSchException: Auth fail
  2. 0

    JSch Key authentification exception Auth fail

    Stack Overflow | 1 year ago | SirSandmann
    com.jcraft.jsch.JSchException: Auth fail
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Java ssh connect with key using JSch - Auth Failed

    Stack Overflow | 1 year ago | Emil Rojewski
    com.jcraft.jsch.JSchException: Auth fail
  5. 0

    GitHub comment 22#65349577

    GitHub | 2 years ago | tinvgu
    com.jcraft.jsch.JSchException: Auth fail

  1. abrazeneb 1 times, last 3 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
    Session.connect
    1. com.jcraft.jsch.Session.connect(Session.java:512)[jsch-0.1.53.jar:?]
    2. com.jcraft.jsch.Session.connect(Session.java:183)[jsch-0.1.53.jar:?]
    2 frames
  3. org.mule.transport
    SftpMessageReceiver$2.doWork
    1. org.mule.transport.sftp.SftpClient.login(SftpClient.java:145)[mule-transport-sftp-3.7.0.jar:3.7.0]
    2. org.mule.transport.sftp.SftpConnectionFactory.createClient(SftpConnectionFactory.java:108)[mule-transport-sftp-3.7.0.jar:3.7.0]
    3. org.mule.transport.sftp.SftpConnector.createSftpClient(SftpConnector.java:190)[mule-transport-sftp-3.7.0.jar:3.7.0]
    4. org.mule.transport.sftp.SftpConnector.createSftpClient(SftpConnector.java:173)[mule-transport-sftp-3.7.0.jar:3.7.0]
    5. org.mule.transport.sftp.SftpReceiverRequesterUtil.getAvailableFiles(SftpReceiverRequesterUtil.java:72)[mule-transport-sftp-3.7.0.jar:3.7.0]
    6. org.mule.transport.sftp.SftpMessageReceiver$2.doWork(SftpMessageReceiver.java:280)[mule-transport-sftp-3.7.0.jar:3.7.0]
    6 frames
  4. Mule Core
    AbstractPolicyTemplate.execute
    1. org.mule.retry.policies.AbstractPolicyTemplate.execute(AbstractPolicyTemplate.java:63)[mule-core-3.7.0.jar:3.7.0]
    1 frame
  5. org.mule.transport
    SftpMessageReceiver.doConnect
    1. org.mule.transport.sftp.SftpMessageReceiver.doConnect(SftpMessageReceiver.java:269)[mule-transport-sftp-3.7.0.jar:3.7.0]
    1 frame
  6. Mule Core
    Flow.doStart
    1. org.mule.transport.AbstractMessageReceiver.connectHandler(AbstractMessageReceiver.java:447)[mule-core-3.7.0.jar:3.7.0]
    2. org.mule.transport.AbstractTransportMessageHandler.connect(AbstractTransportMessageHandler.java:214)[mule-core-3.7.0.jar:3.7.0]
    3. org.mule.transport.AbstractConnector.registerListener(AbstractConnector.java:1272)[mule-core-3.7.0.jar:3.7.0]
    4. org.mule.endpoint.DefaultInboundEndpoint.start(DefaultInboundEndpoint.java:104)[mule-core-3.7.0.jar:3.7.0]
    5. org.mule.construct.AbstractFlowConstruct.startIfStartable(AbstractFlowConstruct.java:325)[mule-core-3.7.0.jar:3.7.0]
    6. org.mule.construct.AbstractPipeline.doStart(AbstractPipeline.java:353)[mule-core-3.7.0.jar:3.7.0]
    7. org.mule.construct.Flow.doStart(Flow.java:90)[mule-core-3.7.0.jar:3.7.0]
    7 frames