Mike Crowe
01/30/2022, 5:38 PM/etc/profile.d/ssh-agent.sh is a bit rough, and doesn't really work as expected (but I'd like confirmation that others see the issue too).
In Linux, upon startup it finds an agent (I see * Found SSH agent config), but then it starts a new agent (I'm not sure how /var/tmp/.ssh-agent is getting created before /etc/profile.d/ssh-agent.sh runs).
The proper way to test if the agent is alive is:
ssh-add -l &>/dev/null
if [[ $? -gt 1 ]]; then ...
Based on my experience with ssh-agent, I think a better implementation is here, which should work well in mac as well as linux worlds. With this setup, I can:
ssh-add ~/.ssh/id_rsa
geodesic
(in geodesic shell)
ssh-add -L
and see my SSH keys from the host.
Can somebody with a mac build with this /etc/profile.d/ssh-agent.sh and confirm that it works for Mac users as well?Yonatan Koren
01/30/2022, 5:52 PMYonatan Koren
01/30/2022, 6:02 PMGEODESIC_MAC_FORWARD_SOCKET=true after building the container. Added and removed ssh-agent identities on the host and they appear and disappear within Geodesic.Mike Crowe
01/30/2022, 6:03 PM/etc/profile.d/ssh-agent.sh that ships with geodesic?Yonatan Koren
01/30/2022, 6:04 PMmake install, then invoked GEODESIC_MAC_FORWARD_SOCKET=true geodesicYonatan Koren
01/30/2022, 6:05 PMMike Crowe
01/30/2022, 6:07 PMYonatan Koren
01/30/2022, 6:08 PMMike Crowe
01/30/2022, 6:09 PM