sshnet / SSH.NET

SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
http://sshnet.github.io/SSH.NET/
MIT License
3.88k stars 917 forks source link

How to use command line option #1359

Closed sw-atparagon closed 3 months ago

sw-atparagon commented 3 months ago

In the sftp command line client I am able to add -o HostKeyAlgorithms=+ssh-rsa -o "PubkeyAcceptedAlgorithms=+ssh-rsa". Can I do something similar using the c# ssh.net library? Without it the connection does not work either because there no mutual signature algorithm without "PubkeyAcceptedAlgorithms=+ssh-rsa" or no matching host key type found. Their offer: ssh-rsa without the -o HostKeyAlgorithms=+ssh-rsa -o "PubkeyAcceptedAlgorithms=+ssh-rsa" option.

Rob-Hague commented 3 months ago

The library already supports ssh-rsa by default. Could you please clarify the error you receive?

sw-atparagon commented 3 months ago

It seems I was using an older version of ssh.net It seems to work now Thank you