Opened 11 years ago

Closed 11 years ago

#41543 closed enhancement (worksforme)

openssh @6.4p1 add launchd support to ssh-agent

Reported by: jpo@… Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: kazenyuk@…, petrrr
Port: openssh

Description

This patch allows ssh-agent to be started via launchd as a LaunchAgent such that the macports ssh-agent can replace the system ssh-agent.

This is required to use graphical applications that use ssh without providing a way to request a passphrase for the ssh key (because in the version of ssh that ships with osx, passphrase entry is handled automatically via the keychain).

The default LaunchAgent exports SSH_AUTH_SOCK to the environment of everything in the user's session, and launches ssh-agent when a connection to that socket is first attempted. That single ssh-agent process continues running for the duration of the user's session so that you can ssh-add your key and then use it from anything else, for example another terminal window or a graphical application that does not have a mechanism for passphrase entry.

Attachments (1)

JPO-ssh-agent-launchd.patch (5.6 KB) - added by jpo@… 11 years ago.

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by jpo@…

Attachment: JPO-ssh-agent-launchd.patch added

comment:1 Changed 11 years ago by jpo@…

Cc: jpo@… added

Cc Me!

comment:2 Changed 11 years ago by jpo@…

Cc: jpo@… removed

Cc Me!

comment:3 Changed 11 years ago by kazenyuk@…

Cc: kazenyuk@… added

Cc Me!

comment:4 Changed 11 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:5 Changed 11 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…
Status: newassigned

The changes in this patchfile are already available in MacPorts using the +gsskex variant to the openssh port.

comment:6 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.