java.lang.Object
de.iip_ecosphere.platform.support.ssh.Ssh

public abstract class Ssh extends Object
Generic access to SSH. Requires an implementing plugin of type Ssh or an active SshProviderDescriptor. Simplified interface akin to Spark.
Author:
Holger Eichelberger, SSE
  • Field Details

    • instance

      private static Ssh instance
  • Constructor Details

    • Ssh

      public Ssh()
  • Method Details

    • getInstance

      public static Ssh getInstance()
      Returns the Rest instance.
      Returns:
      the instance
    • setInstance

      public static void setInstance(Ssh rest)
      Manually sets the instance. Shall not be needed, but may be required in some tests.
      Parameters:
      rest - the Rest instance
    • createServer

      public abstract Ssh.SshServer createServer(ServerAddress address) throws IOException
      Creates an SSH server.
      Parameters:
      address - the server address
      Returns:
      the server instance, null if failed
      Throws:
      IOException