SSHClient
.Close()
⇒ boolean
.Connect(host, port, username, password)
⇒ boolean
.ConnectSSHInfoMode(host, port)
⇒ HandshakeLog
.ConnectWithKey(host, port, username, key)
⇒ boolean
.Run(cmd)
⇒ string
.SetTimeout(sec)
HandshakeLog
: object
ssh
SSHClient
.Close()
⇒ boolean
.Connect(host, port, username, password)
⇒ boolean
.ConnectSSHInfoMode(host, port)
⇒ HandshakeLog
.ConnectWithKey(host, port, username, key)
⇒ boolean
.Run(cmd)
⇒ string
.SetTimeout(sec)
boolean
SSHClient
boolean
- - The success state of the operation.error
- The error encountered during the operation.boolean
SSHClient
boolean
- - The success state of the operation.error
- The error encountered during the operation.Param | Type | Description |
---|---|---|
host | string | The host to connect to. |
port | number | The port to connect to. |
username | string | The username for the connection. |
password | string | The password for the connection. |
HandshakeLog
SSHClient
HandshakeLog
- - The HandshakeLog object containing information about the ssh connection.error
- The error encountered during the operation.Param | Type | Description |
---|---|---|
host | string | The host to connect to. |
port | number | The port to connect to. |
boolean
SSHClient
boolean
- - The success state of the operation.error
- The error encountered during the operation.Param | Type | Description |
---|---|---|
host | string | The host to connect to. |
port | number | The port to connect to. |
username | string | The username for the connection. |
key | string | The private key for the connection. |
string
SSHClient
string
- - The output of the command.error
- The error encountered during the operation.Param | Type | Description |
---|---|---|
cmd | string | The command to execute. |
SSHClient
Param | Type | Description |
---|---|---|
sec | number | The number of seconds for the timeout. |
object
ssh