how can I correct the "No more authentication meth...
# ask-stanley-ai
a
how can I correct the "No more authentication methods available" error that is caused when I attempt to create an SFTP connection?
c
AI generated answer (using internal Slack threads):
The "No more authentication methods available" error you're encountering when trying to create an SFTP connection in NetSuite typically indicates an issue with the authentication process. Here are some steps you can take to resolve this issue: 1. Check your credentials: Ensure that the username, password, and host key you're using are correct. These should match the credentials provided by your SFTP server. 2. Use API Secrets for password: Instead of using password GUID, you can save the password under Setup > Company > API Secrets, and then reference that secret by its internalid in the script. Here's an example:
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>"]
});
3. Check the SFTP server compatibility: NetSuite can be particular about the SFTP server compatibility. Make sure your SFTP server is compatible with NetSuite. You can refer to the [Supported Cipher Suites and Host Key Types](https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4784614151.html) for more information. 4. Try using the IP address instead of the domain name: If you're using a domain name to connect to the SFTP server, try using the IP address instead. Please note that if you're trying to connect to Amazon SFTP, it might not be supported in SuiteScript as it uses keys to authenticate. ****** 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.857109129
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831711829
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822393179
Please provide your feedback on this answer.