-
Notifications
You must be signed in to change notification settings - Fork 363
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 ForwardAgent does not work for openvscode #1307
Comments
@nrontsis thanks for raising this issue and providing a clear summary and example! I have replicated the issue and can confirm the problematic behaviours. After debugging I believe the issue is here https://github.com/loft-sh/devpod/blob/main/pkg/ssh/server/ssh.go#L136. We are overriding the SSH_AUTH_SOCK env var on each handler in the SSH server. I believe the issue is caused due to additional SSH commands that are sent in order to set up the container tunnel via the browser. For instance if you perform I think the fix is to change the SSH server implementation so we can specify on a per connection basis if the SSH_AUTH_SOCK should be updated. This might be a fairly big change and I am currently occupied with another feature but will return to this soon! |
thanks a lot for the reply and the analysis @bkneis! |
This issue is stale because it has been open for 30 days with no activity. |
What happened?
ForwardAgent does not work on openvscode. If I do e.g.
the ssh_auth_sock is pointing to a non-existing file.
while manually ssh'ing into the pod via
ssh devpod-example-go.devpod
has no issue: i.e. ForwardAgent works fine, and I can authenticate e.g. in github fine.What did you expect to happen instead?
ForwardAgent to work for openvscode, as it does when I ssh into the pod.
How can we reproduce the bug? (as minimally and precisely as possible)
Run:
Local Environment:
DevPod Provider:
Anything else we need to know?
Nothing
The text was updated successfully, but these errors were encountered: