Opened 2 years ago
Last modified 5 months ago
#66334 assigned defect
openssh: /opt/local/bin/ssh-agent not used — at Version 2
Reported by: | ianstyxial | Owned by: | artkiver (グレェ) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.0 |
Keywords: | highsierra | Cc: | |
Port: | openssh |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
On macOS 10.13.6 after (as root):
port install openssh port load openssh
and then e.g, as user:
scp ....
instead of /opt/local/bin/ssh-agent , the native /usr/bin/ssh-agent is still run. How to invoke macports /opt/local/bin/ssh-agent ?
Change History (2)
comment:1 Changed 5 months ago by fhgwright (Fred Wright)
comment:2 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | highsierra added; ssh-agent removed |
Owner: | set to artkiver |
Status: | new → assigned |
Summary: | /opt/local/bin/ssh-agent not used on macOS 10.13.6 → openssh: /opt/local/bin/ssh-agent not used |
Hopefully you are not actually using MacPorts 2.8.0 which was released in 2022 but are instead using the latest version 2.9.3. If port version
does not show at least 2.9.3, please update to 2.9.3 by running sudo port selfupdate
or downloading and running the installer from our web site.
A single port can have multiple launchd plists if needed.
Note: See
TracTickets for help on using
tickets.
It makes sense that the agent isn't automatically included in
port load
, but it would be useful if there were anotherport load
target for it. I have a working setup for it here, though I haven't determined whether there's a way to duplicate the behavior of PATH, where the MacPorts version of a command is used if it's active, and the OS-supplied version otherwise.I just made a modified version of the Apple LaunchAgent, as follows:
With that, one just unloads the system version and loads the MacPorts version, though there's no automatic fallback if the MacPorts version is deactivated.
The separate target issue could probably be solved just by creating a dummy subport for the agent load.