[25:14] (extern: com.lehman.aussomserver.connnectors.AussomSSH) extends: object
The ssh class implements various SSH functions for managing a remote SSH connection.
ssh (string Host, string UserName, string Password, int Port = 22)
Constructor creates a new ssh connection object with the provided arguments.
Host is a string with the host.UserName is a string with the user name.Password is a string with the password.Port is an optional int with the port number.This object.newSsh (string Host, string UserName, string Password, int Port = 22)
connect ()
Attempts to connect to the remote host.
This object.disconnect ()
Disconnect from the remote host.
This object.write (string Str)
Writes the provided string over the ssh connection.
This object.writeCommand (string Command)
Writes the provided command on the remote host.
Command is a string with the command to write.This object.getIsConnected ()
Gets the is connected flag.
A bool with the flag value.getIsChannelConnected ()
Gets the is channel connected flag.
A bool with the flag value.read ()
Reads a single byte from the remote system and returns it as a string.
A string with the read byte.readUntil (string UntilStr)
Reads until the provided string is found.
UntilStr is a string to match.A string with the bytes read.