Skip to main content

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​
NAMETYPEDESCRIPTION
commandstringServer 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​
NAMETYPEDESCRIPTION
commandstringServer path where the folder should be created.
timeoutintCommand execution timeout.
Return​

( SSHExecResult )

Command execution result.


isClosed​


isClosed() : boolean​

Description​

Checks if the session is still open.

Return​

( boolean )

True if it is open.