Open Anwarvic opened 4 months ago
Sorry for the trouble, we did update the ssh-config parser in the last update and I'd guess this is somehow related to that. I can't repro this on Windows or mac though. Can you install the latest Remote-SSH pre-release extension and let me know if you still see it? Is there anything else in your config file besides what you posted above?
Hi @roblourens ,
So sorry about the late reply! I was out-of-office the past few days. Below is some information about what you've asked :
Can you install Remote-SSH pre-release extension and let me know if you still see it [the issue]?
Yes, I've installed VSCode Insiders and Remote-SSH pre-release and still see the issue. I even recorded my screen where the issue occurs real-time.
Is there anything else in your config file besides what you posted above?
No. However, if the configuration file is empty, there will be no issue since this bug changes the content of already-existing hosts in the configuration file as seen in the above recording. Also, the number of hosts in the configuration flie doesn't matter. I've tried one and many and both get affected by the bug.
Hope this helps!
Oh, I do see it removing =
in the ProxyCommand. I just don't see it adding one to UserKnownHostsFile
in the existing config. This is probably enough for me to investigate though.
Filed upstream: https://github.com/cyjake/ssh-config/issues/84
Any update about this issue?
Is there an existing issue for this bug?
Required Troubleshooting Steps
remote.SSH.useLocalServer
settingConnect Locally
It connects successfully
Bug Description
Hi Team,
After the most recent VSCode update on 06/18/2024, whenever I add a new host using RemoteSSH, the extension addes the new host but also heavily changes the configuration file which disrupts any future connections to all servers in the configuration file. Here is the current VSCode version where this issue occurs:
Kindly note that the earlier VSCode version didn't have this issue. However, I found this old issue: #6197 with similar problem.
Current Behavior
Let's assume that I have tihs configuration file:
Now, let's add a new host using the following command in the Remote SSH
+
button, which basically adds the same host aleady in the configuration file (akaTMP-3PLogs
).Now, the configuration file changs to the following:
This nasty bug wasted two days of my life I'm not getting back 😞