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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Authenticates server accesses.
    static interface 
    The SSH server with further setup options.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static Ssh
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Ssh()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract Ssh.SshServer
    createServer(de.iip_ecosphere.platform.support.ServerAddress address)
    Creates an SSH server.
    static Ssh
    Returns the Rest instance.
    static void
    Manually sets the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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(de.iip_ecosphere.platform.support.ServerAddress address) throws IOException
      Creates an SSH server.
      Parameters:
      address - the server address
      Returns:
      the server instance, null if failed
      Throws:
      IOException