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/ssh_auth_sock" no such file or directory #8

Open
kraftman opened this issue Aug 31, 2022 · 0 comments
Open

".ssh/ssh_auth_sock" no such file or directory #8

kraftman opened this issue Aug 31, 2022 · 0 comments

Comments

@kraftman
Copy link

kraftman commented Aug 31, 2022

Following the guide used to work ok, but recently I started getting an error about ssh_auth_sock not being found.
Maybe its a recent ssh change, but it seems like ~/.ssh/ssh_auth_sock is now a symlink to a temp directory, which isn't resolved since its not mapped into the volume.

I don't know if it's the correct solution, but I was able to fix it by using the SSH_AUTH_SOCK variable to mount the temp file instead of the symlink, as follows:

    image: cagataygurturk/docker-ssh-tunnel
    volumes:
      - $HOME/.ssh:/root/ssh:ro
      - $SSH_AUTH_SOCK:/root/ssh/ssh_auth_sock
 
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