In SuiteScript when I'm trying to connect SFTP ser...
# suitescript
b
In SuiteScript when I'm trying to connect SFTP server with key file, I tried
Copy code
sftp.createConnection({username:'username', keyId:'custkeykeyid', url:url, directory:'/', hostkey:myHostKey})
But I'm facing an error that says myHostKey is not correct. I tried to use public Key or private key, but not sure what that hostKey is. Could someone help me on this please?
c
You can obtain it from the host by running: ssh-keyscan -t rsa HOSTNAME
b
Thank you @CD