Hi @Nelson Soares ,
Please check the SSH.Net usage documentation. https://github.com/sshnet/SSH.NET
Renci.SshNet
only supports OpenSSH format private keys, you seem to be using a public key. First you'd better test whether your key is correct. Run the OpenSSH ssh
command in Windows (with OpenSSH), Mac or Linux terminal to see if the connection is successful or the reason for the error.
If the key is fine, modify it to the format supported by Renci.SshNet according to the documentation.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.