I have an application that uses SshClient and was wondering what the best
usage pattern was. Is it better to have a single long living SshClient
that is used throughout the application or to open and close the SshClient
as needed? My particular use case is centered around a recurring task that
es
Our recommendation is definitely to have *one* SshClient instance
throughout the
application and (re-)use it to create as many SSH sessions as needed,
public static void main(String[] args) {
SshClient client = ... initialize the client ...
client.start();
try {
...run the application pro