App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#Applicationintegration
#App Connect
#AppConnect
 View Only
  • 1.  SFTP configuration

    Posted Fri March 15, 2024 02:29 AM

    Hi all

    Environment is ACE 12.0.7

    I'm trying to configure a small flow to read from/write to a remote SFTP server.

    I have a Fileoutput node as follows:

    FTP policy:

    Fileoutput node:

    and


    The path on the remote server looks like this:

    I had to add the /tmp to the Directory on the Fileoutput Basic tab becasue I can't define /Home/... on the server where ACE is running. 

    The user trace shows this:

    File node 'File Output' in message flow 'PutDiscovery' could not connect to remote 'SFTP' server 'xxxxxxxxx:22'. Reason: 'java.net.ConnectException: Connection timed out (Connection timed out).' 
    The FileInput or FileOutput node failed to open a connection to a remote server. Possible reasons for this failure are that the server could not be contacted, the initial FTP protocol was not observed, or an error situation exists at the server. The reason text is from the detected connection failure. 
    Ensure that:  
    - The server address is correct and is locally resolved to a valid IP address.  
    - The server port is correctly specified (the default port for FTP is 21, and for SFTP it is port 22).  
    - A firewall does not block access to the remote server.

    Any suggestions, please?



    ------------------------------
    Peter Von Hirschfeld
    ------------------------------


  • 2.  RE: SFTP configuration

    Posted 21 days ago

    Dear Peter/Team,

    I'm also encountering the same error, despite having all the configuration details set correctly.

    Error:
    File node 'ReadFromRemote' in message flow '' could not connect to remote 'SFTP' server ''. Reason: 'java.net.UnknownHostException:'

    If you've experienced and resolved this issue, I would appreciate any guidance or solution you could share.

    Regards,

    Sadiq



    ------------------------------
    Sadiq Shaik
    ------------------------------



  • 3.  RE: SFTP configuration

    Posted 18 days ago

    Sadiq,

    You are having a completely different error: UnknownHostException.

    This means that your IP / hostname is unknown. The IP cannot be routed or the hostname can not be determined (nslookup fails)



    ------------------------------
    Francois Brandelik
    ------------------------------



  • 4.  RE: SFTP configuration

    Posted 18 days ago
    Edited by Francois Brandelik 18 days ago

    Peter,

    I would check and make sure that java / javaw has access to the firewall. On a time out check firewalls and potentially add time to your timeout for the connection...

    Also when using TLS make sure that the cipherspecs are valid and not deprecated (keysize >=2048 etc...)

    ------------------------------
    Francois Brandelik
    ------------------------------