Modify ↓
Ticket #442 (closed enhancement: fixed)
public key support for scp and ssh tasks
| Reported by: | Carl Welch <cwelch@…> | Owned by: | mrook |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.4.1 |
| Component: | phing-tasks-ext | Version: | 2.4.0 |
| Keywords: | ssh scp key | Cc: |
Description
I think the ScpTask and SshTask features would benefit from support for public key authentication.
I'm attaching a patchfile which patches the tasks/ext/ScpTask.php and tasks/ext/SshTask.php files to add this support. It worked for me, anyway.
In both cases, rather than using the "password" attribute, you use "pubkeyfile" and "privkeyfile" (and optionally "privkeyfilepassphrase") options. If either task sees the "pubkeyfile" attribute, it tries public key authentication (rather than password authentication).
Attachments
Change History
Changed 2 years ago by Carl Welch <cwelch@…>
-
attachment
pubkey_diff.txt
added
Note: See
TracTickets for help on using
tickets.

patchfile to add public key support to scp and ssh tasks