Renci.SshNet.dll was already mentioned in current blog. It is client library to connect to SSH servers for example Linux sshd daemon. Similar as other ssh related software Renci.SshNet.dll has list of default Ciphers, Key Exchange Algorithms, Message Authentication Code and other connection settings. These setting are defined in Renci ConnectionInfo class. It is possible to see these setting in VS debugger Watch window when your application is stopped at breakpoint for example for Key Exchange Algorithms:
or create simple function:
printRenciDefaultsRequestInfo(“ChannelRequests”, clientSsh.ConnectionInfo.ChannelRequests); printRenciDefaults(“KeyExchangeAlgorithm”, clientSsh.ConnectionInfo.KeyExchangeAlgorithms); … private static void printRenciDefaults(String name, IDictionary { Console.WriteLine(name); foreach (string str in dict.Keys) { Console.WriteLine(str); } } |
Below presented default connection settings for Renci.SshNet.dll for version 2020.0.0-beta1:
ChannelRequests env exec exit-signal exit-status pty-req shell signal subsystem window-change x11-req xon-xoff eow@openssh.com keepalive@openssh.com CompressionAlgorithms none HostKeyAlgorithms ssh-ed25519 ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-rsa ssh-dss HmacAlgorithms hmac-md5 hmac-md5-96 hmac-sha1 hmac-sha1-96 hmac-sha2-256 hmac-sha2-256-96 hmac-sha2-512 hmac-sha2-512-96 hmac-ripemd160 hmac-ripemd160@openssh.com CipherInfo aes256-ctr 3des-cbc aes128-cbc aes192-cbc aes256-cbc blowfish-cbc twofish-cbc twofish192-cbc twofish128-cbc twofish256-cbc arcfour arcfour128 arcfour256 cast128-cbc aes128-ctr aes192-ctr KeyExchangeAlgorithm curve25519-sha256 curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group-exchange-sha256 diffie-hellman-group-exchange-sha1 diffie-hellman-group16-sha512 diffie-hellman-group14-sha256 diffie-hellman-group14-sha1 diffie-hellman-group1-sha1 |