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

Permission Denied when running as non root #5

Open
ikogan opened this issue Jul 15, 2020 · 0 comments
Open

Permission Denied when running as non root #5

ikogan opened this issue Jul 15, 2020 · 0 comments

Comments

@ikogan
Copy link

ikogan commented Jul 15, 2020

Typically my dev containers run as a non-root user in VSCode and when trying to interact with the agent, I get Permission Denied.
Both ssh-add -l and simply using ssh get permission denied when interacting with the agent. The /tmp/.ssh-auth-sock permissions are srwxr-xr-x root:rooot. If I run the same container as root with:

docker run -ti --rm -e SSH_AUTH_SOCK=/tmp/.ssh-auth-sock -l com.ensody.ssh-agent-inject= --entrypoint=/bin/bash vsc-mw-docker-base-image-updater-integration-393441b99ce096875fdf31c15bd6ca7f-uid 

I can use the agent socket just fine.

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

1 participant