Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO

Exception connecting to SFTP

0 votes
155 views
asked Feb 9 in .NET FTP by rsmith (120 points)
edited Feb 9 by rsmith

Edit: When I added this line it worked. Why?

 PreferredHostKeyAlgorithms = EnterpriseDT.Net.Ssh.SSHPublicKeyAlgorithm.AllPreferRSA

 

I am experiencing an error trying to connect to a client where I am getting the following error.  DSA: Sigblob length 56 bytes < required 40 bytes.  I am looking for some insight on how to correct this issue.  I can connect to the sftp server using Winscp.

ALL [ClientKeyExchanger] 9 Feb 2017 13:35:33.029 :  Sig:
00 00 00 07 73 73 68 2D 64 73
73 00 00 00 38 20 F5 1C D5 2E
F5 DE 19 B1 F3 CC 7D BE 1D 41
80 9D B7 89 46 80 18 33 FA B9
21 E3 B8 6B 01 72 68 B9 07 6D
0B 80 0E C9 D4 FC 0A 91 30 87
70 E1 DD 3A CD 95 13 D0 F5 37
AA
ALL [ClientKeyExchanger] 9 Feb 2017 13:35:33.029 :  Hash:
F8 C9 10 05 9D C2 E4 AD B4 88
9A 43 71 20 91 AF 87 C7 A5 77

ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :  Failed to connect - closing connection
ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :  EnterpriseDT.Net.Ssh.Routrek.PKI.VerifyException: DSA: sigblob length of 56 bytes < required 40 bytes
ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :     at z5uK9Wepjxwl3H4m8KU.JgvMkReeOvLReSt8Di3.Verify(Byte[] , Byte[] )
ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :     at E70qshjs1uma3Kd2SvT.gRSinaju6I3G0pQw0fx.nmsURFt0GoJ(SSH2DataReader , Byte[] , Byte[] )
ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :     at E70qshjs1uma3Kd2SvT.gRSinaju6I3G0pQw0fx.JASURdGp2wT(Byte[] , Byte[] , Byte[] )
ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :     at E70qshjs1uma3Kd2SvT.gRSinaju6I3G0pQw0fx.JqfURDXNyCZ(q80hh3eSbtVdnTnoZ3Q )
ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :     at E70qshjs1uma3Kd2SvT.gRSinaju6I3G0pQw0fx.McNUR0dknFs()
ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :     at CR0IccINdM4TIqODQvG.KdAc68Ip2agQw1CVyJx.Connect(Y4QgtiqboYwQmtwJs5 )
ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :     at ifmxyGR4QBJsrPp8G5f.YGj1W1RfNawT570jK7q.TYThFuj778(fv6pegjBmkZHB2OX9m4 , l29L3Ggxwflt6lwtg6 , nvgTdZvYldlF5Jh4yI , Y4QgtiqboYwQmtwJs5 )
ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :     at ifmxyGR4QBJsrPp8G5f.YGj1W1RfNawT570jK7q.G7EhdKiRwv(fv6pegjBmkZHB2OX9m4 , l29L3Ggxwflt6lwtg6 , Socket , ILogTag )
ERROR [SSHFTPClient] 9 Feb 2017 13:35:33.114 :     at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.Connect()

1 Answer

0 votes
answered Feb 15 by support2 (142,610 points)
Sorry for the late response. It apparently works for RSA keys but not DSA keys - most servers support both, but RSA should be preferred. WinSCP is probably using RSA.
...