when trying to connect to an sFTP server, I'm gett...
# ask-stanley-ai
m
when trying to connect to an sFTP server, I'm getting this error message: "Could not establish connection to No more authentication methods available."
c
AI generated answer (using internal Slack threads):
Based on the conversations, the error message "Could not establish connection to No more authentication methods available" is typically encountered when trying to establish a connection to an SFTP server. This error is often related to authentication issues. One of the users suggested that the issue might be related to the use of password GUID for authentication. They recommended using API Secrets instead. Here is a sample code snippet they provided:
Copy code
javascript
let connection = sftp.createConnection({
    username: 'test_sftp_user_12345',
    secret: 'custsecret_files_password',
    url: '<http://test.files.com|test.files.com>',
    hostKey: creds.hostKeys["<http://files.com|files.com>"]
});
In this code, the password is saved under Setup > Company > API Secrets, and then referenced by its internalid in the script. Another user pointed out that NetSuite can be picky about SFTP server compatibility. You can check the supported cipher suites and host key types in the NetSuite Help Center. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.881397
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.856701255
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843549609
Please provide your feedback on this answer.
100 Views