Need to delete redundant keys in order to communicate with some servers. More than one encryption throws an exception.
foreach (var d in connectionInfo.Encryptions.Where(p => p.Key != "aes256-cbc").ToList())
{
connectionInfo.Encryptions.Remove(d.Key);
}
Comments: ** Comment from web user: c_t_klein **
foreach (var d in connectionInfo.Encryptions.Where(p => p.Key != "aes256-cbc").ToList())
{
connectionInfo.Encryptions.Remove(d.Key);
}
Comments: ** Comment from web user: c_t_klein **
I don't have a public server but I can say that I run into the same problem connecting to a Tumbleweed FTP server and I have to do a similar piece of code:
foreach (var d in connectionInfo.Encryptions.Where(p => p.Key != "aes128-cbc").ToList()) { connectionInfo.Encryptions.Remove(d.Key); }