I am using JSch to connect to SShd and then using port forwarding to forward the data.
In my application I want to make sure if the server is alive or not proactively. How can I do that?
The thing is I want to show my customer yes the connection between the client and server is up. I tried using the isConnected method of the Session class but that doesn't give the right information because if I kill server in backed it still keep returning true.
Any help in how do this is really appreciated.