PHP Class AwsInspector\Ssh\Connection

Author: Fabrizio Branca
Afficher le fichier Open project: aoepeople/stackformation Class Usage Examples

Protected Properties

Свойство Type Description
$host string
$jumpHost AwsInspector\Model\Ec2\Instance
$multiplex boolean
$multiplexedConnections array
$privateKey PrivateKey
$username string

Méthodes publiques

Méthode 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

Method Details

__construct() public méthode

Connection constructor.
public __construct ( $username, $host, PrivateKey $privateKey = null, Instance $jumpHost = null, boolean $multiplex = false )
$username
$host
$privateKey PrivateKey
$jumpHost AwsInspector\Model\Ec2\Instance
$multiplex boolean

__toString() public méthode

public __toString ( )

closeMuxConnections() public static méthode

Close all multiplexed connections
public static closeMuxConnections ( )

connect() public méthode

Interactive connection
public connect ( )

exec() public méthode

Execute command on this connection
public exec ( string $command, string $asUser = null ) : array
$command string
$asUser string
Résultat array

getHost() public méthode

public getHost ( ) : string
Résultat string

getJumpHost() public méthode

public getJumpHost ( ) : Instance
Résultat AwsInspector\Model\Ec2\Instance

getPrivateKey() public méthode

public getPrivateKey ( ) : PrivateKey
Résultat PrivateKey

getUsername() public méthode

public getUsername ( ) : string
Résultat string

isMultiplex() public méthode

public isMultiplex ( ) : boolean
Résultat boolean

tunnel() public méthode

Interactive connection
public tunnel ( $configuration )

Property Details

$host protected_oe property

protected string $host
Résultat string

$jumpHost protected_oe property

protected Instance,AwsInspector\Model\Ec2 $jumpHost
Résultat AwsInspector\Model\Ec2\Instance

$multiplex protected_oe property

protected bool $multiplex
Résultat boolean

$multiplexedConnections protected_oe static_oe property

protected static array $multiplexedConnections
Résultat array

$privateKey protected_oe property

protected PrivateKey,AwsInspector\Ssh $privateKey
Résultat PrivateKey

$username protected_oe property

protected string $username
Résultat string