-
Notifications
You must be signed in to change notification settings - Fork 313
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]: SSH agent forwarding broken after reconnect #10274
Comments
like the previous issue, this one goes away when setting |
Repro'd again. On a MacOS client it's quite easy to do:
Further investigation suggests it's something in the extension that's injecting old environment variables into the shell session. Evidence:
|
update: this can also happen when In this case the fix is to open a new terminal. tl;dr: |
FWIW, we also experience the exact same issue on Windows 11 (connecting to a Linux remote) - we have to disable So this is not an issue specific to MacOS - perhaps it's less common on Windows because the SSH agent is disabled by default, so agent forwarding takes more steps to set up. Perhaps there are other specific requirements to make the bug happen, but I haven't found any. |
I stumbled into this behavior too, currently using The problem is reproducible in a consistent manner and vanishes when switching to As I was already involved in #9819 this looks like a similar case at least from the users perspective. |
Just an update from my side. I'm still able to reproduce this issue with the latest pre-release version of the Remote SSH extension at the time of writing this comment |
This should be fixed in the latest pre-release (released earlier today With exec server enabled you should see
Please let me know if you're seeing otherwise and include your logs (+ repro steps if relevant). Thanks for folks' patience! |
I switched to pre-release and am still having issues, but the extension version is Edit: Trying it in VSCode Insiders now (thanks Daniel, I hadn't considered it) and it does appear to be working! |
@joshspicer - from a first look I can confirm that As @ehoogeveen-medweb pointed out with the current stable VSCode build it is only possible to bump up the pre-release to Afterwards I tried |
Apologies for not mentioning, you'll need to test in insiders since this pre-release other changes were made that require the newest VS Code APIs. Thanks very much for the initial testing @ehoogeveen-medweb and @danielhass! After some more extended use, please let me know if you encounter any further issues |
What's the best way to verify this? |
This has been validated by two community members, so i'm confident it has helped. Here are the steps: Repro steps
|
Marking as verified based on the comments above. |
this is basically a duplicate submission of #9662
That issue was closed as completed, however I have observed the same behavior in latest release of remote ssh extension. [10:53:17.474] Remote-SSH version: [email protected]
Steps to Reproduce:
Does this issue occur when you try this locally?: no
The text was updated successfully, but these errors were encountered: