ssh & ssh-agent conflict

Bjarne D Mathiesen macintosh at mathiesen.info
Tue Dec 21 22:51:03 UTC 2021


further dectective work has given me :

root at MiniWeb 22:41:05 /tmp
#=> lsof | sed -En -e '1,1p' -e '/launch-Mnqkqu/p'
COMMAND      launchd
PID          136
USER         root
FD           11u
TYPE         unix
DEVICE       0x04fc6dd0
SIZE/OFF     0t0
NODE
NAME         /tmp/launch-Mnqkqu/Listeners

so, it's something started by launchctl
#=> launchctl list | grep 136
136	-	com.apple.launchd.peruser.0

and it's apparently from LaunchAgents somewhere

OK - /System/Library/LaunchAgents
   & org.openbsd.ssh-agent.plist
& Console shows that it's trying to start it every 10 sec
but it seems as if I can only get rid of it after re-login [thinking]
because as the service isn't actually running it can't be administered

#=> ll /usr/bin/ssh-agent
ls: /usr/bin/ssh-agent: No such file or directory

So, at some time this ssh-agent existed, but now it's disappeared
somehow mysteriously ...

kill -9 136
got rid of the re-spawning, but the SSH_AUTH_SOCK env variable is still
set when opening a Terminal window/tab

Seems as if I'll have to do an
    unset SSH_AUTH_SOCK
whenever I'll use ssh until reboot

and I've changed
    /usr/bin/ssh-agent
to  /opt/local/bin/ssh-agent
in  org.openbsd.ssh-agent.plist

+--------+
| SOLVED |
+--------+

-- 
Bjarne D Mathiesen
Korsør ; Danmark ; Europa
-----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacPro 2010 ; OpenCore + macOS 10.15.7 Catalina
2 x 3,46 GHz 6-Core Intel Xeon ; 256 GB 1333 MHz DDR3 ECC RDIMM
ATI Radeon RX 590 8 GB


More information about the macports-users mailing list