I'm trying to write a simple C# program just to scp a file to another device running Linux.
The program run just fine when I sent file to one Linux system, but got this error
when I tried to sent to some other Linux machine.Error: Key-exchange algorithm diffie-hellman-group1 -sha1 was not verified!
When I use WinSCP, the warning popped up say
and I click Yes to continue and it works just fine. So somehow WinSCP can bypass this when I click Yes to continue.The first key-exchange algorithm supported by the server is diffie-hellman-group1 -sha1, which is below the configured warning threshold.
How do I bypass this key-exchange error when written in C#? I don't care about security, just want to transfer a file.