I'm trying to set authentication for sftp server using private and public key pair.
I have set an sftp server with Bitvise SSH Server on a local machine. I generated private and public keys with SSH Server. I have set the private key on the host key section of SSH Server, and have created a virtual account and set the public key to that account.
I want to create a c# application with SharpSSH to connect to the sftp server.
But which key should I put in the c# code? the private or the public key?
Thanks