Method |
Description |
|
__construct ( $username, $host, PrivateKey $privateKey = null, Instance $jumpHost = null, boolean $multiplex = false ) |
Connection constructor. |
|
__toString ( ) |
|
|
closeMuxConnections ( ) |
Close all multiplexed connections |
|
connect ( ) |
Interactive connection |
|
exec ( string $command, string $asUser = null ) : array |
Execute command on this connection |
|
getHost ( ) : string |
|
|
getJumpHost ( ) : Instance |
|
|
getPrivateKey ( ) : PrivateKey |
|
|
getUsername ( ) : string |
|
|
isMultiplex ( ) : boolean |
|
|
tunnel ( $configuration ) |
Interactive connection |
|