You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any progress with this ?
Interested in historic versions specific cipher support lists. Would like to progress hardening, removing weak cipher support.
On Mar 24, 2021, at 6:01 AM, Igor Milavec ***@***.***> wrote:
I use a helper function for this purpose:
public static ConnectionInfo CreateConnectionInfo(string host, ushort port, string userName, AuthenticationMethod[] authenticationMethods)
{
ConnectionInfo connectionInfo = new ConnectionInfo(
host,
port,
userName,
authenticationMethods);
#region Remove insecure hashes
connectionInfo.HmacAlgorithms.Remove("hmac-md5");
connectionInfo.HmacAlgorithms.Remove("hmac-md5-96");
connectionInfo.HmacAlgorithms.Remove("hmac-sha1-96");
connectionInfo.HmacAlgorithms.Remove("hmac-sha2-256-96");
connectionInfo.HmacAlgorithms.Remove("hmac-sha2-512-96");
connectionInfo.HmacAlgorithms.Remove("hmac-ripemd160");
***@***.***");
#endregion
#region Remove insecure ciphers
connectionInfo.Encryptions.Remove("blowfish-cbc");
connectionInfo.Encryptions.Remove("twofish-cbc");
connectionInfo.Encryptions.Remove("twofish128-cbc");
connectionInfo.Encryptions.Remove("twofish192-cbc");
connectionInfo.Encryptions.Remove("twofish256-cbc");
connectionInfo.Encryptions.Remove("arcfour");
connectionInfo.Encryptions.Remove("arcfour128");
connectionInfo.Encryptions.Remove("arcfour256");
connectionInfo.Encryptions.Remove("3des-cbc");
connectionInfo.Encryptions.Remove("cast128-cbc");
connectionInfo.Encryptions.Remove("aes128-cbc");
connectionInfo.Encryptions.Remove("aes192-cbc");
#endregion
#region Remove insecure key exchange algorithms
connectionInfo.KeyExchangeAlgorithms.Remove("diffie-hellman-group-exchange-sha1");
connectionInfo.KeyExchangeAlgorithms.Remove("diffie-hellman-group1-sha1");
#endregion
return connectionInfo;
}
I agree that this should be configurable. However with the spread of platforms SSH.NET is targeting, this might be hard to do in a consistent manner.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
@drieseng that would be great. Can you please form your proposal in Discussions? There are quite a few issues related to this and I would like to close them and redirect to the discussion.
I think what needs to be discussed apart from API design is how to group algorithms (weak/strong, by some standard, ...).
Activity
j3zz3r commentedon Jan 14, 2021
Any progress with this ?
Interested in historic versions specific cipher support lists. Would like to progress hardening, removing weak cipher support.
IgorMilavec commentedon Mar 24, 2021
I use a helper function for this purpose:
I agree that this should be configurable. However with the spread of platforms SSH.NET is targeting, this might be hard to do in a consistent manner.
rykr commentedon Mar 24, 2021
drieseng commentedon Feb 12, 2022
@IgorMilavec I have "Add a fluent API to build client" on my bucket list. Something to discuss?
IgorMilavec commentedon Feb 12, 2022
@drieseng that would be great. Can you please form your proposal in Discussions? There are quite a few issues related to this and I would like to close them and redirect to the discussion.
I think what needs to be discussed apart from API design is how to group algorithms (weak/strong, by some standard, ...).