You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Lyor Goldstein <lg...@apache.org> on 2019/06/23 17:20:08 UTC

Re: sshclient pool

>>  Wanted to advice with you. I have couple of linux instances and I want
to hold or keep in memory couple of sshclient

Not sure I understand what you  mean - basically, unless extremely special
requirements/circumstances one needs only one SshClient instance per
application. One instance can be used to create multiple sessions...

>> will do first connect and authenticate to all of them.

Again, terminology is unclear - only sessions can be connected and then
authenticated - not SshClient(s)

If you mean that you want to have several active long lived SSH sessions
from different processes running Java, then it is quite feasible - there is
the issue of how to keep the sessions alive, how to recover them, etc,,,