-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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] Non-default profile causing connection issues in 1.95 #232602
Comments
One more clue is that the VSCode keeps asking the OS of remote host, then I select Linux, after that the error window pops out. Downgrade to 1.94.2 then works well. |
I come here to do exactly this post, thanks, UP SSH connection works if you connect with IP. however it always ask to confirm if it's a linux, windows or mac ... as example this does not work anymore: Host server.work
HostName 192.168.111.4
User username_here
ForwardAgent yes |
@ruijzhan are you using VSCode profiles by chance? I had this problem in one VSCode instance but not another, and the difference ended up being that the instance that didn't work had an enabled profile. The instance that used a profile also worked if I reverted to 1.94.2. When I opened the settings.json for the profile and my user settings.json and moved over the relevant settings from the user settings to the profile settings (even though they're supposed to be "across all profiles" settings), the failing instance started working as expected. I think VSCode 1.95 is erroneously applying settings that are supposed to apply across all profiles on a per-profile basis. Since they are supposed to apply to all profiles, you can't set these settings for the profile except through the profile's settings.json (though you really shouldn't need to do so; it's just a workaround that seems to work for me), so they use the default value. Since one of these settings is |
Thank you. You are right. When I switched to Default profile, it works. @joshspicer please refer to this |
Same issue, VSCode 1.95, MacOS. Error msg: Setting up SSH Host xxx.xxx.xxx.xxx: Copying VS Code Server to host with scp |
Hi, One more update here: When I switch to the Default profile, everything works fine. However, if I edit the |
Yeah, I did the same. I also had to add |
Great find. I confirm that this solves the problem and it must certainly be something related to the scope of the settings. What I did:
|
Thank you all for the investigations. I'm looking into if there were any changes to VS Code profiles in the last release that we can handle better in this extension There was another profiles-related issue opened last month that is now reported to be fixed in the latest VS Code update (microsoft/vscode-remote-release#10376). Folks on this thread, please let us know if you're still able to repro in the latest release - cc/ @sandy081 |
@joshspicer Yes, the issue persist in version 1.95.1 as related here: |
I'm unfortunately not able to repro. I tried creating a new profile (not tweaking any of the settings in the new profile). I then swapped to that profile and ssh'd to a host. Some asks for anyone that can repro:
|
Hello, I'm experiencing issues with Remote-SSH on this particular profile. When using this profile and attempting to connect to a remote host via SSH in VSCode, the issue consistently occurs. Profile link: https://vscode.dev/profile/github/29935e3ae18f67ccb4e06424003d9578 Currently, I’m using version 1.95.1, where I see errors that weren't present in 1.95.0. Unlike in 1.95.0, where the error message would pop up but SSH connection logs continued, in 1.95.1 the logs stop as soon as the .js errors appear. Version: 1.95.1 (user setup) Let me know if you need any more information. |
Sorry for the delay and thanks all for the data. I can indeed repro, I just don't see the crash due to the properties of the host I am SSH'ing to. I do get prompted each time for the remote platform on 1.95, which is enough to prove the bug. The Remote - SSH extension did not have a stable release last month, so either this behavior change needs to be handled in this extension, or better fixed in core. |
@joshspicer Can you please verify this? |
Can some one please verify if this issue got fixed in the following builds |
validated from a windows host to a linux remote host. When using a non-deafult profile I no longer see a prompt on each connection to select the remote platform |
Verified from Win11 to remote Ubuntu host. Problem solved. Thank you. |
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
The output indicated a connection timeout, and an error window popped up. However, the logs continued to print, showing that the connection to the remote host was actually established.
The text was updated successfully, but these errors were encountered: