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);
}
foreach (var d in connectionInfo.Encryptions.Where(p => p.Key != "aes256-cbc").ToList())
{
connectionInfo.Encryptions.Remove(d.Key);
}