im trying to establish an sftp connection but i ha...
# suitescript
l
im trying to establish an sftp connection but i have no idea how to generate passowordGUID - host key and secret. can someone help me
n
https://ursuscode.com/netsuite-tips/suitescript-2-0-sftp-tool/ The tool here and video guide is very good explaining it and will make your life easier.
b
Secrets Management is easier and more convenient than using password guids
💯 1
s
Though, I have heard that API Secrets are preserved across sandbox refreshes - which could be harmful.
My main issue with the older password guids approach is no listing or management of them anywhere in NS as far as I can tell.
👍 1
n
Yeah, very much a case of once you've set up the GUID you're on your own to manage that going forward it's out of sight.
r
If you are creating a script to just send files to the SFTP server, I would suggest looking into the free SFTP Connector SuiteApp (.../suiteapp/ui/marketplace.nl?sc=-180#/app?id=com.netsuite.sftpconnector)) developed by NS. No need to re-invent the wheel.
☝🏻 1