Continuous Delivery Automation

Expand all | Collapse all

connection is closed by foreign host.

Jump to Best Answer
  • 1.  connection is closed by foreign host.

    Posted 03-06-2018 09:10 AM
    Hello,

    I'm facing with below error when trying new SFTP connection profile:

    2018-03-06 14:53:38             host name = xx.***.xx.***, remote user identification  = xxxx_xx
    2018-03-06 14:53:38             connecting on port : xxxxx
    2018-03-06 14:53:38             Using hosts file = /home/uc4/.ssh/known_hosts
    2018-03-06 14:53:38             Connecting to xx.***.xx.*** port xxxxx
    2018-03-06 14:53:38             Connection established
    2018-03-06 14:53:38             Disconnecting from xx.***.xx.*** port xxxxx
    connection is closed by foreign host
    com.uc4.ftpjob.DataTransferException: Connection exception.
         at com.uc4.transfer.CITSFTPImpl.<init>(CITSFTPImpl.java:214)
         at com.uc4.ftpjob.connections.ConnectionFactory$1.run(ConnectionFactory.java:70)
         at java.lang.Thread.run(Thread.java:745)
    Caused by: 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 com.uc4.transfer.CITSFTPImpl.<init>(CITSFTPImpl.java:194)
         ... 2 more 


    Any help would be appreciated.


  • 2.  connection is closed by foreign host.

    Posted 03-06-2018 03:56 PM
    Hi

    seems like a permission or cert issue: connection is closed by foreign host

    Whats in the FTP server log?

    cheers, Wolfgang


  • 3.  connection is closed by foreign host.
    Best Answer

    Posted 03-08-2018 09:39 AM
    Solved, customer removed public IP from whitelist :smile: