I need to upload csv file from NS to SFTP sever an...
# suitescript
r
I need to upload csv file from NS to SFTP sever and bank is asking to provide IP address so that they can whitelist the IP. Just wondering where i can find this information
s
I do not believe attempting to whitelist IP is the correct approach.
m
afaik, the only currently supported way for the SFTP server to authenticate your client is with a username/password
s
I've used this in the past as well if you are having any issues with the SFTP https://ursuscode.com/netsuite-tips/suitescript-2-0-sftp-tool/
s
I believe the latest version of SFTP from NetSuite supports client-side certificates for authentication. Have the bank use that. It's far better than IP addresses which you can't really get anyway.
m
I thought that was just on imports with the sftp connectivity plug-in. There's a way to do it with exports too?
s
ah, sorry I thought you were speaking of the
n/sftp
module. I've not used the SFTP bank connectivity plugin
m
yea but I don't think that has it. see the available parameters
message has been deleted
s
I haven't tested it myself, but I believe the
keyid
property allows you to specify the SSH key to use for (client) authentication
m
ooh nice ty
s
np. NetSuite's documentation isn't exactly great yet on this topic. But apparently all you need is to upload your SSH private key in the NS ui
assuming your other side can accept a public key to validate rather than an ip address then it should work?
r
@stalbert Just wondering how can i get or generate SSH private key
@stalbert I was able to generate SSH key using Putty on window
And exported them as SSH
s
I use
ssh-keygen
- part of openSSH