Class SSHService

java.lang.Object
de.bytestore.hostinger.process.service.SSHService

@Component @Service public class SSHService extends Object
  • Constructor Details

    • SSHService

      public SSHService()
  • Method Details

    • createSSH

      public 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 void close(SSHSocket socketIO)
      Closes the SSHSocket and removes it from the sockets HashMap if it exists.
      Parameters:
      socketIO - the SSHSocket to be closed