Workaround for 'Invalid Key Size' error in the version 3.5

You may experience 'Invalid Key Size' error when connecting to your server. This bug is addressed in the ComponentSoft version (2011.2 - v5.0) that we are working on. To go through this error in the current version 2011.1 - v3.5, you can set AllowedMacAlgorithms and/or AllowedHostKeyAlgorithms. The following examples demonstrate how to set them:

Setting AllowedMacAlgorithms

Sftp s = new Sftp(); s.AllowedMacAlgorithms = SshMacAlgorithm.MD5;

Setting AllowedHostKeyAlgorithms

Sftp s = new Sftp(); s.AllowedHostKeyAlgorithms = SshHostKeyAlgorithm.Rsa;

If you still experience the error, please send us your log file and we will investigate it.