This project is read-only.

Error : Bad packet length. How to accept SSH certificate thru API to connect to the SFTP site.

Aug 21, 2012 at 8:26 PM

Hi,

 I’m a new bee in using Renci.SshNet libraries. I’m using below statements to connect to a SFTP site. While debugging the code, connect statement throws an exception “Bad packet length”. After initial analysis, I found out that I have to accept SSH certificate to connect to the SFTP site. Can you please guide me to do that? 

var client = new SftpClient(host, 22, username, password);

client.Connect();

 Thanks!

Aug 22, 2012 at 3:13 PM

This issue is fixed!