Hi! I was wondering if anyone has a minute to help...
# suitescript
g
Hi! I was wondering if anyone has a minute to help me out here. I have a script that I am generating a file and I'd like to download it to an FTP. For testing purposes, I'd like to use my localhost for an SFTP. I have it all set up and can "access it via filezilla" . To create the GUID and HOST KEY I used the Suitelet here: https://stackoverflow.com/questions/45816153/generate-guid-at-runtime-without-using-form-in-netsuite
Copy code
"type":"error.SuiteScriptError","name":"FTP_MALFORMED_HOST_KEY","message":"Host key must be base64 String that is at least 96 bytes","stack":["createError(N/error.js)","upload_to_sftp(ShippingConfirmation.js$228914$debugger.user:128)","execute(ShippingConfirmation.js$228914$debugger.user:123)","<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:27)","<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:19)","<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:35)","<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:1)"],"cause":{"type":"internal error","code":"FTP_MALFORMED_HOST_KEY","details":"Host key must be base64 String that is at least 96 bytes","userEvent":null,"stackTrace":["createError(N/error.js)","upload_to_sftp(ShippingConfirmation.js$228914$debugger.user:128)","execute(ShippingConfirmation.js$228914$debugger.user:123)","<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:27)","<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:19)","<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:35)","<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:1)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}
n
Do you supply the host key and have you set up the password guid? I presume you are able to get the key from your local sFTP setup.
g
Yes. Where would that be found?
129 Views