Jeroen van Erp
Jeroen van Erp
I'm not sure I understand the question. If you want to run SSHJ under a sudo user, just ensure that you fire up your java process as that user. If...
Have you tried adding a `flush()` in the write method?
Take a look at the server side logging. There might be more information there.
Actually because the `RemoteFile` is opened, you should be closing that. The problem is if you would close the `RemoteFile` if you closed the `RemoteFileOutputStream` is that you wouldn't be...
@Kordishal I do get your point. However, I do have a different point of view. You open the `RemoteFile`, you close it. It is a `Closeable` resource, so no magic...
You will need to program this yourself. SSHJ does not by itself handle the reuse for you. Op vr 22 mei 2020 om 12:42 schreef saravanakumarvijayakumar < [email protected]>: > Is...
@saravanakumarvijayakumar No there isn't. There is a keep alive mechanism available to keep connections (and thus sessions) alive.
@FabianHenneke You can open a shell for that :) Unless you don't know the commands beforehand, in which case I would suggest to cache the connected client by hostname.
No, at this moment the SSHClient is not reusable, which is also documented in the JavaDoc.