Interface Ssh.SshServer
- All Superinterfaces:
de.iip_ecosphere.platform.support.Server
- Enclosing class:
Ssh
public static interface Ssh.SshServer
extends de.iip_ecosphere.platform.support.Server
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()Methods inherited from interface de.iip_ecosphere.platform.support.Server
stop
-
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()- Specified by:
startin interfacede.iip_ecosphere.platform.support.Server
-
isStarted
boolean isStarted()Returns whether the server is started/running.- Returns:
truefor started,false
-