Vb.net sftp期间的错误数据错误消息

Vb.net sftp期间的错误数据错误消息,vb.net,sftp,sharpssh,Vb.net,Sftp,Sharpssh,我对sftp有问题。请输入sharpssh。我收到以下错误消息: Session.connect: System.Security.Cryptography.CryptographicException: Bad Data. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.Util

我对sftp有问题。请输入sharpssh。我收到以下错误消息:

Session.connect: System.Security.Cryptography.CryptographicException: Bad Data.
   at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)  
   at System.Security.Cryptography.Utils._ImportKey(SafeProvHandle hCSP, Int32 keyNumber, CspProviderFlags flags, Object cspObject, SafeKeyHandle& hKey)  
   at System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(DSAParameters parameters)  
   at Tamir.SharpSsh.jsch.jce.SignatureDSA.verify(Byte[] sig)  
   at Tamir.SharpSsh.jsch.DHG1.next(Buffer _buf)  
   at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)  `
代码:


不要使用SharpSSH库。这是一个失败的项目。谢谢你。。。我将尝试一下KellermanSoftware.NetSFtpLibrary,在经历了4-5个小时的痛苦之后,我第一次尝试时,kellerman错误地试图解决这些问题,他成功了:D
Dim port = "22"
Dim host = "sftp.iceCream.com"
Dim Username = "softserve"
Dim Password = "chocolate"
Dim ftpFolder = "/toCREAM"
Dim fileName = "timbo.txt"


Dim sftp = New Sftp(host, Username, Password)
sftp.Connect(22)
sftp.Put(System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), fileName), ftpFolder) '+ "/" + fileName)

sftp.Close()