cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Authenticate with Public/Private Key Pair

Garate77
Deputy Chef I
Deputy Chef I

Hi,

We are trying to connect to the SFTP using Public/Private Key Pair, but keep getting the following error:

    "Connection failed
    Authentication failed for user user_test@xyz.domain.com"
Workato IPs have been whitelisted and with the same keys we are able to connect with Filezilla for example. Any assistance will be welcome.
1 ACCEPTED SOLUTION

marlon-muela
Workato employee
Workato employee

Hi @Garate77 ,

This is Marlon from the Product Support Team.

To fix the "connection failed" issue in SFTP, you can try the following steps:

  1. Check for Trailing Spaces: Ensure no trailing spaces exist in the SFTP host address. A trailing space can cause connection issues, as seen in some cases where removing the space resolves the problem.

  2. Verify SFTP Server Configuration: Some SFTP servers have custom configurations that may close the connection if non-ssh-rsa algorithms are used. Ensure that the server is configured to accept the algorithms your client is using.

  3. Review Recent Changes: Recent updates or changes, such as a net-ssh gem upgrade, might affect the connection. Check if any recent updates could be causing the issue and consider rolling back or applying necessary patches.

  4. Check Network and Firewall Settings: Ensure that no network or firewall settings are blocking the connection to the SFTP server. Sometimes, network issues can cause connection failures.


    If you have tried and still get an error, I highly recommend contacting the support team via the ticket portal to check the SFTP configuration further.

View solution in original post

6 REPLIES 6

CodersArcade
Deputy Chef II
Deputy Chef II

We have a situation where a client has given us a .key file.  Whenever i try to import in Filezilla says its a public key. Please correct me if wrong. We need both private key and public key for connection to their SFTP or we generate private and public key and share the public key to them?

 

marlon-muela
Workato employee
Workato employee

Hi @Garate77 ,

This is Marlon from the Product Support Team.

To fix the "connection failed" issue in SFTP, you can try the following steps:

  1. Check for Trailing Spaces: Ensure no trailing spaces exist in the SFTP host address. A trailing space can cause connection issues, as seen in some cases where removing the space resolves the problem.

  2. Verify SFTP Server Configuration: Some SFTP servers have custom configurations that may close the connection if non-ssh-rsa algorithms are used. Ensure that the server is configured to accept the algorithms your client is using.

  3. Review Recent Changes: Recent updates or changes, such as a net-ssh gem upgrade, might affect the connection. Check if any recent updates could be causing the issue and consider rolling back or applying necessary patches.

  4. Check Network and Firewall Settings: Ensure that no network or firewall settings are blocking the connection to the SFTP server. Sometimes, network issues can cause connection failures.


    If you have tried and still get an error, I highly recommend contacting the support team via the ticket portal to check the SFTP configuration further.