0

I'm writing an application that uses the Renci libraries to upload and download files to an SFTP server.

So far the application works in terms of passing the public key portion of the clients private key to the server (the STP server has the clients public key).

The issue I'm having is in getting the Hosts public key. I need to retrieve this once I've connected and ensure it matches the public key sent to us by the customer for the SFTP server.

I've looked through the Renci library and can't see how to do this. Is it possible?

I've also looked on this site and can't see an answer, hence this question.

Any help would be greatly appreciated.

Thanks.

Mark Beynon
  • 265
  • 1
  • 3
  • 19

0 Answers0