Modify

Ticket #442 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

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

pubkey_diff.txt Download (5.1 KB) - added by Carl Welch <cwelch@…> 2 years ago.
patchfile to add public key support to scp and ssh tasks

Change History

Changed 2 years ago by Carl Welch <cwelch@…>

patchfile to add public key support to scp and ssh tasks

comment:1 Changed 2 years ago by mrook

  • Status changed from new to assigned
  • Milestone set to 2.4.1

comment:2 Changed 2 years ago by mrook

(In [741]) Refs #442 - public key support for scp/ssh tasks (patch by Carl Welch)

comment:3 Changed 2 years ago by mrook

  • Status changed from assigned to closed
  • Resolution set to fixed

We believe this issue has been fixed in the SVN trunk.

Thank you for the report, and for helping us make Phing better!

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.