SSHSession
Sessão SSH para executar comandos.
close
close() : void
Description
Closes the current session.
Return
( void )
closed
closed() : boolean
Description
Checks if the session is still open.
Return
( boolean )
True if it is open.
exec
exec(command: string) : SSHExecResult
Description
Execute commands remotely via SSH on the server.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
command | string | Server path where the folder should be created. |
Return
( SSHExecResult )
Command execution result.
exec(command: string, timeout: int) : SSHExecResult
Description
Execute commands remotely via SSH on the server.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
command | string | Server path where the folder should be created. |
timeout | int | Command execution timeout. |
Return
( SSHExecResult )
Command execution result.
isClosed
isClosed() : boolean
Return
( boolean )