class: ssh
[32:14] (extern: com.lehman.aussom.Ssh) extends: object
The ssh class implements various SSH functions for managing a remote SSH connection.
Methods
-
ssh (
string Host, string UserName, string Password, int Port = 22)Constructor creates a new ssh connection object with the provided arguments.
- @p
Hostis a string with the host. - @p
UserNameis a string with the user name. - @p
Passwordis a string with the password. - @p
Portis an optional int with the port number. - @r
Thisobject.
- @p
-
newSsh (
string Host, string UserName, string Password, int Port = 22) -
connect ()
Attempts to connect to the remote host.
- @r
Thisobject.
- @r
-
disconnect ()
Disconnect from the remote host.
- @r
Thisobject.
- @r
-
write (
string Str)Writes the provided string over the ssh connection.
- @r
Thisobject.
- @r
-
writeCommand (
string Command)Writes the provided command on the remote host.
- @p
Commandis a string with the command to write. - @r
Thisobject.
- @p
-
getIsConnected ()
Gets the is connected flag.
- @r
Abool with the flag value.
- @r
-
getIsChannelConnected ()
Gets the is channel connected flag.
- @r
Abool with the flag value.
- @r
-
read ()
Reads a single byte from the remote system and returns it as a string.
- @r
Astring with the read byte.
- @r
-
readUntil (
string UntilStr)Reads until the provided string is found.
- @p
UntilStris a string to match. - @r
Astring with the bytes read.
- @p
class: ssh_module
[22:14] static extends: object
Module JAR loader class.
Methods
- ssh_module ()