RE: NetSuite’s host Key
A customer of mine wants to transfer CSV files from NetSuite to a remote SFTP server. The remote does not provide any username/password or private key. Customer is now asking is it possible to get NetSuite’s host key so they can allow host it in the remote server.
Any inputs are appreciated.
SFTP uses two different forms of authentication. One is the traditional username/password. the other is pairs of public and private keys.
For the pairs of keys, both the client and server have their own set of public keys and private keys. The client gives the sftp server their public key, whoever administrates the sftp server adds that public key to their sftp server’s user list, and then the client can use their private key to authenticate with the sftp server. The sftp server also has their own private key and public key, with the public key (the host key) being given to the client so that the server can prove its identity using its private key.
If you can’t use username/password, then you need to give your sftp server administrator your own ssh public key. Its fairly common for the sftp administrator to generate both the private key and public key for the client if they think you are incapable of doing so.
You will not get NetSuite’s host key, it is not acting as the sftp server. Generate your own ssh private and public keys and give the public key to the sftp server administrator. Theoretically you may want to ask them which algorithms, key sizes, or key formats they support. Its probably a bad sign if that information was not communicated to you already.