RVR-SFTPConn-102
- 1 Minute to read
- Print
- DarkLight
- PDF
RVR-SFTPConn-102
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Issue Summary
- The error "Connection Error to SFTP {host}. Bad SSH Keys or File. Error Code: RVR-SFTPConn-102" indicates a failure to authenticate the connection to the SFTP server. This typically results from incorrect SSH key configuration or unauthorized keys being used. The underlying cause could be that the SSH public key wasn't added correctly to the SFTP server, or the keys might not be formatted or placed correctly on the server.
Action Steps:
- Verify SSH Key Placement:
- Ensure the SSH key being used is correctly associated with your SFTP server. The public key should be in the
authorized_keys
file on the server.
- Ensure the SSH key being used is correctly associated with your SFTP server. The public key should be in the
- Check Permissions:
- Verify that the
.ssh
directory and theauthorized_keys
file have the correct permissions:- Directory
~/.ssh/
should have700
permissions (chmod 700 ~/.ssh
). authorized_keys
file should have600
permissions (chmod 600 ~/.ssh/authorized_keys
).
- Directory
- Verify that the
- Validate SSH Key:
- Make sure the correct SSH public key is registered on the SFTP server in a single, unbroken line within the
authorized_keys
file. Ensure any changes made to the keys or theauthorized_keys
file have been saved properly.
- Make sure the correct SSH public key is registered on the SFTP server in a single, unbroken line within the
- Generate and Use a New SSH Key Pair:
- If invalid SSH keys are suspected, generate a new SSH key pair and update the server's
authorized_keys
with the public key. Use the newly created private key to establish the connection.
- If invalid SSH keys are suspected, generate a new SSH key pair and update the server's
- Test Connection:
- Use the "Test Connection" feature available in Rivery to confirm if the connection settings are correct and the credentials are valid.
- Verify SSH Key Placement:
External References:
- For more information, you can refer to Rivery's documentation on setting up SFTP connections: Rivery SFTP Connection Guide.
- Ensure that the IPs listed in Rivery's Whitelisted IP Documentation are correctly whitelisted on your server's firewall settings.
If the issue persists or you need further assistance, please open a ticket with Rivery support.
Was this article helpful?