Hi, I would suggest you to implement a listener to catch if ssh is disconnected suddenly.

Now I'm implementing Logger interface and, if message contains "Caught an exception, leaving main loop due to Connection reset", I retry the ssh connection.

Many thanks!

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to