This project is read-only.

SSH.NET dropping connection

Apr 11, 2016 at 12:10 PM
Hi

So I have a project that connects to some hardware with SSH. Everything is working well apart from one issue.

At the end of my program I send a command to the hardware using SSH to restart the hardware. This works the hardware resets however my code - written in VB will then hang. This appears to be because the SSH connection is being dropped.

Can anyone suggest how to handle this? I looked at the timeout function and tried settings this to 2 seconds but nothing appeared to happen. When I debug in VB it sits at the line which has sent out the reset command to the hardware and does not move past this point.

Thanks