Class SshShellSession
java.lang.Object
com.shaft.cli.SshShellSession
- All Implemented Interfaces:
AutoCloseable
Experimental interactive SSH shell session backed by one JSch
ChannelShell.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the shell channel and removes it from the parent terminal session.Reads shell output until the supplied pattern matches using the configured default timeout.Reads shell output until the supplied pattern matches or the timeout elapses.voidWrites exact text to the remote shell without appending a newline.voidWrites text plus a newline to the remote shell.voidsendSecret(String text) Writes exact text to the remote shell without logging the raw payload.
-
Method Details
-
send
Writes exact text to the remote shell without appending a newline. -
sendLine
Writes text plus a newline to the remote shell. -
sendSecret
Writes exact text to the remote shell without logging the raw payload. -
readUntil
-
readUntil
-
close
public void close()Closes the shell channel and removes it from the parent terminal session.- Specified by:
closein interfaceAutoCloseable
-