views:

15

answers:

0

Hi,

I am using ch.ethz.ssh2.Connection.Connection object from ganymed-ssh2-build210.jar

I want to add timeout while establishing connection to server so that if it fails to open connection, after certain time it should throw some exception.Can anyone help on how to add timeout while establishing connection using connect method?

Thanks in advance, Devayani