Issue with SFTP Connector Configuration in Airbyte

Summary

The user is facing an issue setting up an SFTP connector in Airbyte. The error message indicates an authentication failure even though the public key connection is successful. The server logs show that the session is opened but immediately disconnected by the user. The user is seeking insights and suggestions to resolve this disconnection issue.


Question

Hi everyone,
I’m experiencing an issue with setting up an SFTP connector in Airbyte and could use some help. Here’s the situation, I have an SFTP server running on a remote Linux machine. From my local machine, I can successfully connect to this SFTP server and transfer data without any issues. However, when I try to set up the SFTP connector in Airbyte, I get an "Configuration check failed
Could not connect to the server with provided configuration. com.jcraft.jsch.JSchException: Auth fail.
Upon checking the server logs, I noticed that the connection using the public key is successful, and a session is created:

Jul 14 07:24:14 etl-test-env sshd[4055926]: pam_unix(sshd:session): session opened for user sftp_user(uid=1004) by (uid=0)
Jul 14 07:24:14 etl-test-env systemd-logind[581]: New session 1459 of user sftp_user.
Jul 14 07:24:22 etl-test-env sshd[4056009]: Received disconnect from [Ip adress] port 37852:11: disconnected by user
Jul 14 07:24:22 etl-test-env sshd[4056009]: Disconnected from user sftp_user [Ip adress] port 37852 ```
It appears that the session is opened successfully but then immediately disconnected by the user. I'm not sure why this disconnection is happening right after the connection is established.
Could anyone provide insights or suggestions on what might be causing this issue and how to resolve it? Any help would be greatly appreciated!
Thank you!

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1720936058880279) if you want 
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["sftp-connector", "configuration-check-failed", "auth-fail", "public-key", "session-disconnection", "server-logs"]
</sub>