Interface Ssh.SshServer
- All Superinterfaces:
Server
- Enclosing class:
Ssh
The SSH server with further setup options.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the server is started/running.voidsetAuthenticator(Ssh.Authenticator authenticator) Sets the authenticator.voidsetHostKey(File hostKeyFile) Sets the host key for encryption in terms of a given file.voidsetShellInit(String command, String... args) Defines the command to initialize the shell.start()Start the server without waiting time/blocking.
-
Method Details
-
setAuthenticator
Sets the authenticator.- Parameters:
authenticator- the authenticator
-
setShellInit
Defines the command to initialize the shell. A default shall be implemented by the server.- Parameters:
command- the command, ignored if nullargs- the command arguments, ignored if null
-
setHostKey
Sets the host key for encryption in terms of a given file.- Parameters:
hostKeyFile- the host key file
-
start
Ssh.SshServer start()Description copied from interface:ServerStart the server without waiting time/blocking. -
isStarted
boolean isStarted()Returns whether the server is started/running.- Returns:
truefor started,false
-