tasks/ext/SshTask.php
Execute commands on a remote host using ssh.
- Author
- Johan Van den Brande
- Package
- phing.tasks.ext
- Version
- $Id: SshTask.php 1205 2011-07-02 10:34:13Z mrook $
\SshTask
Package: phing\tasks\ext
Execute commands on a remote host using ssh.
- Parent(s)
- \Task < \ProjectComponent
- Author
- Johan Van den Brande
- Version
- $Id: SshTask.php 1205 2011-07-02 10:34:13Z mrook $
Properties

boolean
$display= 'true'
Whether to display the output of the command
Default value
trueDetails- Type
- boolean

string
$property= '""'
The name of the property to capture (any) output of the command
Default value
""Details- Type
- string
Methods

getPrivkeyfilepassphrase(
$privkeyfilepassphrase
)
:
voidReturns the private keyfile passphrase
Parameters
| Name | Type | Description |
|---|---|---|
| $privkeyfilepassphrase |

setDisplay(
boolean $display
)
:
voidSets whether to display the output of the command
Parameters
| Name | Type | Description |
|---|---|---|
| $display | boolean |

setPrivkeyfile(
$privkeyfile
)
:
voidSets the private key file of the user to scp
Parameters
| Name | Type | Description |
|---|---|---|
| $privkeyfile |

setPrivkeyfilepassphrase(
$privkeyfilepassphrase
)
:
voidSets the private key file passphrase of the user to scp
Parameters
| Name | Type | Description |
|---|---|---|
| $privkeyfilepassphrase |

setProperty(
string $property
)
:
voidSets the name of the property to capture (any) output of the command
Parameters
| Name | Type | Description |
|---|---|---|
| $property | string |

setPubkeyfile(
$pubkeyfile
)
:
voidSets the public key file of the user to scp
Parameters
| Name | Type | Description |
|---|---|---|
| $pubkeyfile |