Class SSHHandler

java.lang.Object
de.bytestore.hostinger.handler.SSHHandler

public class SSHHandler extends Object
  • Constructor Details

    • SSHHandler

      public SSHHandler()
  • Method Details

    • createSSH

      public static SSHSocket createSSH(String hostnameIO, String usernameIO, String passwordIO, int portIO)
      Creates a new SSHSocket object and initializes the SSH connection.
      Parameters:
      hostnameIO - the hostname of the SSH server
      usernameIO - the username for authentication
      passwordIO - the password for authentication
      portIO - the port number for the SSH connection
      Returns:
      the created SSHSocket object
    • close

      public static void close(SSHSocket socketIO)
      Closes the SSHSocket and removes it from the sockets HashMap if it exists.
      Parameters:
      socketIO - the SSHSocket to be closed