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 "Error: Key-exchange algorithm diffie-hellman-group1 -sha1 was not verified!" when I tried to sent to some other linux machine.
when i use winSCP, the warning poped up say "The first key-exchange algorithm supported by teh server is diffie-hellman-group1 -sha1, which is below the configured warning threshold." and i click yes to continue and it works just fine. so some how winSCP can bypass this when i click yes to continue.
how do I bypass this key-exchange error when written in c#? I don't care about security, just want to transfer a file.