Anybody know how to connect sftp server using the ...
# suitescript
r
Anybody know how to connect sftp server using the sftp module. The server stores our public key and we need to connect using the matching private key. But when I use the private key in the script, I keep getting FTP_INCORRECT_HOST_KEY
j
I run:
ssh-keyscan <http://website.com|website.com>
in command prompt/terminal copy everything except
ssh-rsa
r
Do I need to install anything extra if am in Windows
j
you shouldn't need to
I just ran it in CMD and Powershell for good measure
(use powershell to make copying easier)
r
I am getting this: SSH-2.0-All access to this site is logged! Just emailed them to ask for the Server Host Key. Do you also happen to know if the STP Module can authenticate using keys instead of Username and Password?
j
that was brought up a few days ago on my end: I'm not sure NetSuite supports SSH in any capacity, so I had to ask the bank if we could authenticate using Username/Password
btw the server hostkey should be a public key so it should be open to you ... can you provide me with the URL you're trying to hit?
r
Thanks, might go that route too.
j
hmm... I feel like something's missing from this URL ... either we should get a subdomain or longer path: subdomain: abc123.ftpprd.svb.com longer path: ftpprd.svb.com/abc123
I'm only in the beginning stages of working with svb though so I can't really speak with any sophistication on this topic...
r
No problem, thanks
j
hey rusty. I just finished my own SFTP implementation with an SVB server ... as it turns out, they also provide a port that you're supposed to
ssh-keyscan
into. so the full command will be:
ssh-keyscan -p [portnumber] <http://ftpprd.svb.com|ftpprd.svb.com>
e.g.:
ssh-keyscan -p 1234 <http://ftpprd.svb.com|ftpprd.svb.com>
r
Thanks