LDAP Account Manager

Remote
in package

Runs remote commands.

Tags
author

Roland Gruber

Table of Contents

$server  : mixed
SSH2 server handle
$serverConfig  : RemoteServerConfiguration
__construct()  : mixed
Constructor
connect()  : mixed
Connects to the given SSH server.
disconnect()  : mixed
Closes the connection.
execute()  : string
Sends commands to remote script.
loadKey()  : AsymmetricKey
Loads the key
loginSSH()  : mixed
Performs a login to the provided SSH handle.

Properties

$server

SSH2 server handle

private mixed $server

Methods

__construct()

Constructor

public __construct() : mixed
Return values
mixed

disconnect()

Closes the connection.

public disconnect() : mixed
Return values
mixed

execute()

Sends commands to remote script.

public execute(string $command) : string
Parameters
$command : string

command to execute

Return values
string

output of remote script

loadKey()

Loads the key

public loadKey(string $keyPath, string $keyPassword) : AsymmetricKey
Parameters
$keyPath : string

file name

$keyPassword : string

password

Tags
throws
LAMException

error loading key

Return values
AsymmetricKey

key object

loginSSH()

Performs a login to the provided SSH handle.

private loginSSH(SSH2 $handle) : mixed
Parameters
$handle : SSH2

SSH handle

Tags
throws
Exception

login failed

throws
LAMException

error on login

Return values
mixed

Search results