classes/phing/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
Execute commands on a remote host using ssh.
Use {@link Project#createTask} to register a new Task.
- Extends from
- \Task
- author
- Johan Van den Brande
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.ext
- version
- $Id: SshTask.php 1205 2011-07-02 10:34:13Z mrook $
Properties

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

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

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

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

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

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

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

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