Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh fails to connect to agent #16

Closed
zachgersh opened this issue May 10, 2020 · 3 comments
Closed

ssh fails to connect to agent #16

zachgersh opened this issue May 10, 2020 · 3 comments

Comments

@zachgersh
Copy link

There seems to be something slightly strange going on for me on my mac:

if I run the agent directly myself (in the foreground) I can connect to the AUTH_SOCK and everything is fine.

On the other hand, if I attempt to let brew services start the agent (which I believe is root) my user can not longer access the agent AUTH_SOCK, I basically just get permission denied.

Do I have my mac set up in some strange way?

@zachgersh
Copy link
Author

so trying:

sudo brew services stop yubikey-agent
brew services start yubikey-agent

No agent is running on the machine. Before, the agent was just running as root when I would sudo ps ax

@zachgersh
Copy link
Author

alright - to fix this bit, I had to make sure that I chown'ed over the log file for the yubikey-agent in /usr/local/var/log. I figured this out by looking at launchctl list and noticing that the status for yubikey-agent was 78 aka some problem has occurred starting.

@charlesfracchia
Copy link

alright - to fix this bit, I had to make sure that I chown'ed over the log file for the yubikey-agent in /usr/local/var/log. I figured this out by looking at launchctl list and noticing that the status for yubikey-agent was 78 aka some problem has occurred starting.

Thank you so much for this answer. I was going crazy running down this exact same rabbit hole. I had chowned every other file but this one...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants