sweety
sweety

Reputation: 389

How to add timeout while opening SSH session (using ganymed-ssh2-build210.jar)?

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

Upvotes: 0

Views: 1800

Answers (1)

Related Questions