com.jcraft.jsch.JSchException

connection is closed by foreign host

Samebug tips1

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: https://goo.gl/G5680x

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web299

  • connection is closed by foreign host
  • connection is closed by foreign host
  • via Jenkins JIRA by Sam Xiao, 1 year ago
    connection is closed by foreign host
  • Stack trace

    • com.jcraft.jsch.JSchException: connection is closed by foreign host at com.jcraft.jsch.Session.connect(Session.java:269) at com.jcraft.jsch.Session.connect(Session.java:183) at org.mule.transport.sftp.SftpClient.login(SftpClient.java:193) at org.mule.transport.sftp.SftpConnectionFactory.createClient(SftpConnectionFactory.java:104) at org.mule.transport.sftp.SftpConnector.createSftpClient(SftpConnector.java:190)

    Write tip

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

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    98 more bugmates