-
Notifications
You must be signed in to change notification settings - Fork 302
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
[Remote-SSH Bug]: error connecting with ssh-agent: dial unix: missing address #8043
Comments
Hi! Can you include the full remote ssh logs? Additionally, what do you mean by "SSH_AUTH_SOCK from my shell's environment" where are you setting this? |
There are no logs on the remote machine.
My Linux distribution automatically sets it at some point in the login process. It is present on my shell, but I am not sure if it is present during vscode's connection |
Are you starting VScode from the GUI or the terminal? If started from the terminal in a shell session that has a proper |
I hadn't tried this yet, but starting it from a terminal with proper So my guess is that |
Closing as this turned out to be an issue with my Linux distribution |
I agree with the close, though want to add, that it is not necessarily the distribution itself. Other distributions might have the same or similar problems. I think this is more of a thing of the full stack that is involved in initiating the user session and the expectations made by the components. Here we were able to reproduce the issue only with certain display managers/greeters and only for wayland sessions. At the end it boiled down to, some combinations did source/evaluate |
Is there an existing issue for this bug?
Required Troubleshooting Steps
remote.SSH.useLocalServer
settingConnect Locally
It connects successfully
->
No response
Expected Behavior
I use the agent to connect to my host. So when using
ssh
on a terminal, everything works perfectly.When trying to use the extension, I see this in the logs:
This error log is the same as if I remove
SSH_AUTH_SOCK
from my shell's environment, and try tossh
:I would say that for some reason this env var (
SSH_AUTH_SOCK=/run/user/1000/ssh-agent
) is not exported for the extension, but I don't want to jump into conclusions.It is also important to note that in NixOS we do some wrapping around VSCode which may interfere with its functionality, so please give me any more instructions to debug this.
Steps To Reproduce
No response
Remote-SSH Log
Remote-SSH Log
Anything else?
Everything works perfectly fine on my Windows machine
Versions:
VSCode 1.14.3
NixOS built from nixpkgs 9b97ad7b4330aacda9b2343396eb3df8a853b4fc
Tried with both versions
v0.97.2023020215
andv0.96.0
The text was updated successfully, but these errors were encountered: