Ryan Valizan
03/03/2025, 6:00 PMN/sftp
module suddenly stopped working with a specific SFTP server. The error is an unexpected SuiteScript error (UNEXPECTED_ERROR
) with no additional details.
What We Know So Far:
✅ Our key ID is valid and working.
✅ Login credentials haven’t changed.
✅ We can successfully connect to the SFTP servers manually using an SFTP client.
✅ The host key type is RSA and matches the expected value.
✅ The same script works correctly when connecting to an AWS-hosted SFTP server.
What We’ve Tried:
🔹 Including/excluding the keyType: 'rsa'
option.
🔹 Adding/removing the directory
property in connection options.
🔹 Using ssh-keyscan
to verify the correct host key.
🔹 Testing different encryption ciphers and key exchange algorithms.
Example Connection Options in NetSuite:
const connectionOptions = {
url: '<http://our-sftp-server.com|our-sftp-server.com>',
hostKey: 'AAAAB3...',
username: 'our-username',
port: 18765,
keyId: 'our-key-id',
hostKeyType: 'rsa'
};
connection = sftp.createConnection(connectionOptions);
Observations:
- The issue seems to only occur with our SiteGround SFTP servers.
- AWS-hosted SFTP servers work fine, which suggests NetSuite’s N/sftp
module isn’t broken globally.
- The SiteGround server supports standard encryption ciphers.
Has anyone else encountered similar SFTP issues lately? Could there be a change in NetSuite’s SFTP handling or something specific to this server’s SSH settings? Last known date of our SiteGround connection working was Feb 10th, 2025.
Any insights would be greatly appreciated! 🙌Anthony OConnor
03/03/2025, 6:37 PMRyan Valizan
03/03/2025, 8:26 PMerictgrubaugh
03/03/2025, 8:36 PMRyan Valizan
03/03/2025, 8:38 PMAnthony OConnor
03/03/2025, 8:38 PMRyan Valizan
03/03/2025, 8:39 PMeminero
03/05/2025, 3:18 PM