While connecting to SFTP server, I am getting foll...
# suitescript
r
While connecting to SFTP server, I am getting following error message: Provided host key does not match remote server's fingerprint.
b
have you tried getting the host key?
r
@battk When i use $ ssh-keyscan -t rsa -p 22 <mycompanysftp server name>, it does not list my rsa public key. I have successfully connected to sftp server using filezilla client with the private key . Can i add my rsa public key on the server myself in _/etc/ssh/ssh_known_hosts file or only server admin can do that_
b
there are 2 keypairs used
one from the server
one from the client
its been a while since ive used filezilla, but you can probably look at the connection information to see if ypu are missing anything
you can also try including less parameters while scanning for keys
r
I have used only ssh-keyscan <mycompanysftp server name> but it list only one rsa key which is not the once i have provided to our system admin
b
keep in mind that the server has its own key
the client has its own key
if you are not responsible for setting up the sftp server, you should have no knowledge about its private key
r
@battk I have figured it out. I was thinking Host key is the public key of private/public pair. But HOST key is the server key on Amazon S3 SFTP server which is common to all the users for that SFTP server. Thank you for your help