Wasim Bagwan
07/30/2025, 5:58 PMkapa.ai
07/30/2025, 5:59 PMssh-keygen -t rsa -m PEM -f myuser_rsa The private key should start with -----BEGIN RSA PRIVATE KEY----- and end with -----END RSA PRIVATE KEY-----. Paste the entire contents into the Airbyte connector configuration screen. The public key must be added to the authorized_keys file of the user on your bastion (jump) host. [See: Connecting with SSL or SSH Tunneling](https://docs.airbyte.com/integrations/sources/singlestore#connecting-with-ssl-or-ssh-tunneling) (applies to MongoDB as well per Airbyte docs). 2. Configuration Fields: Double-check all SSH tunnel configuration fields: - SSH Tunnel Method: Set to "SSH Key Authentication". - SSH Tunnel Jump Server Host: Hostname or IP of your bastion server. - SSH Connection Port: Usually 22, unless changed. - SSH Login Username: The OS user on the bastion host (not your MongoDB username). - SSH Private Key: The full PEM-formatted private key. [See: MongoDB Destination Setup](https://docs.airbyte.com/integrations/destinations/mongodb#getting-started-airbyte-open-source) 3. Common Pitfalls: - The error message is generic ("Error: null"), which often means the SSH connection could not be established at all. This could be due to: - Incorrect SSH username or host. - The private key does not match the public key on the bastion. - The bastion does not allow SSH from the Airbyte host. - Network/firewall issues between Airbyte and the bastion, or between the bastion and MongoDB. - Make sure the bastion can connect to the MongoDB instance from its own shell. 4. Connector Version: There are known issues with the MongoDB destination connector (0.2.0) and SSH tunneling, but your log does not show the "Format specifier '%s'" error seen in other cases, so your configuration is being read, but the SSH connection itself is failing. [See: Example of SSH tunnel config and troubleshooting](https://docs.airbyte.com/integrations/destinations/mongodb#getting-started-airbyte-open-source) ### Next Steps - Test your SSH connection manually from the Airbyte host to the bastion using the same key and username: ssh -i /path/to/myuser_rsa <ssh_username>@<bastion_host> -p <port> - If this works, try connecting from the bastion to MongoDB to ensure end-to-end connectivity. - If you continue to see "Error: null", try enabling more verbose logging on the bastion and MongoDB to catch any connection attempts or errors. If after these steps the issue persists, it may be a connector bug or a subtle configuration issue not covered in the documentation. In that case, consider opening a new issue on the Airbyte GitHub with your configuration (redacting sensitive info) and logs for further assistance. References: - [MongoDB Destination: Getting Started](https://docs.airbyte.com/integrations/destinations/mongodb#getting-started-airbyte-open-source) - [SSH Tunnel Configuration Example](https://docs.airbyte.com/integrations/sources/singlestore#connecting-with-ssl-or-ssh-tunneling) If you need more specific help, please provide your (redacted) SSH tunnel configuration and confirm that manual SSH works as expected.Wasim Bagwan
07/30/2025, 6:04 PMkapa.ai
07/30/2025, 6:04 PMkapa.ai
07/30/2025, 6:04 PM-----BEGIN RSA PRIVATE KEY----- and end with -----END RSA PRIVATE KEY-----. If your key is in a different format (such as OpenSSH), it will not work. You can convert or generate the correct format using: ssh-keygen -t rsa -m PEM -f myuser_rsa [See: Connecting with SSL or SSH Tunneling](https://docs.airbyte.com/integrations/sources/singlestore#connecting-with-ssl-or-ssh-tunneling) 2. Configuration Fields: Double-check that you have filled in the following fields correctly in the Airbyte UI: - SSH Tunnel Method: SSH Key Authentication - SSH Tunnel Jump Server Host: Hostname or IP of your bastion - SSH Connection Port: Usually 22 - SSH Login Username: The OS user on the bastion (not the MongoDB user) - SSH Private Key: The full PEM-formatted private key (not a passphrase or public key) [See: MongoDB Destination Setup](https://docs.airbyte.com/integrations/destinations/mongodb#getting-started-airbyte-open-source) 3. Known Issues: There are no explicit troubleshooting steps for a generic "Error: null" in the knowledge sources, but similar issues have been reported when the SSH key format is incorrect or when the configuration does not match what works manually. The documentation and forum posts emphasize the importance of using the correct key format and configuration. 4. Connector Limitations: The knowledge sources do not mention any additional required settings or known bugs for this specific scenario, but do note that only RSA PEM keys are supported, and not all SSH key formats are accepted. There is also no mention of needing to provide both a key and a password—only one authentication method is supported at a time. Summary: If you can connect manually with your key, but Airbyte still fails with "Error: null," the most likely cause is an incorrect key format or a mismatch in the configuration fields. Double-check the key format and ensure all fields in Airbyte match your manual SSH command. If the issue persists, the knowledge sources do not provide further troubleshooting steps for this specific error, and you may need to seek additional support from the Airbyte community or GitHub issues. If you have already verified all of the above and the error remains, the knowledge sources do not contain enough information to provide a more specific solution.