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 Type
    Method
    Description
    boolean
    Returns whether the server is started/running.
    void
    Sets the authenticator.
    void
    setHostKey(File hostKeyFile)
    Sets the host key for encryption in terms of a given file.
    void
    setShellInit(String command, String... args)
    Defines the command to initialize the shell.
     

    Methods inherited from interface de.iip_ecosphere.platform.support.Server

    stop
  • Method Details

    • setAuthenticator

      void setAuthenticator(Ssh.Authenticator authenticator)
      Sets the authenticator.
      Parameters:
      authenticator - the authenticator
    • setShellInit

      void setShellInit(String command, String... args)
      Defines the command to initialize the shell. A default shall be implemented by the server.
      Parameters:
      command - the command, ignored if null
      args - the command arguments, ignored if null
    • setHostKey

      void setHostKey(File hostKeyFile)
      Sets the host key for encryption in terms of a given file.
      Parameters:
      hostKeyFile - the host key file
    • start

      Ssh.SshServer start()
      Specified by:
      start in interface de.iip_ecosphere.platform.support.Server
    • isStarted

      boolean isStarted()
      Returns whether the server is started/running.
      Returns:
      true for started, false