microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.66k stars 286 forks source link

[Remote-SSH Bug]: bad hosts added to connection with some sshconfigs (exec, true) #9642

Open jcaselman-keysight opened 7 months ago

jcaselman-keysight commented 7 months ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

->

N/A

Expected Behavior

Erroneus exec and true hosts are not shown

Steps To Reproduce

When the resolved ssh_config contains something like

Match exec true   
    ProxyCommand /usr/bin/sss_ssh_knownhostsproxy -p %p %h

erroneus hosts will be displayed in the connection host selection prompt dropdown like so: image

Remote-SSH Log

N/A

Anything else?

No response

pinkaylove13 commented 7 months ago

name:%20Bug%20Report%0Adescription%3A%20File%20a%20bug%20report%0Atitle%3A%20%22%5BBug%5D%3A%20%22%0Alabels%3A%20%5B%22bug%22,%20%22triage%22%5D%0Aprojects%3A%20%5B%22octo-org/1%22,%20%22octo-org/44%22%5D%0Aassignees:%0A%20%20-%20octocat%0Abody:%0A%20%20-%20type:%20markdown%0A%20%20%20%20attributes:%0A%20%20%20%20%20%20value:%20%7C%0A%20%20%20%20%20%20%20%20Thanks%20for%20taking%20the%20time%20to%20fill%20out%20this%20bug%20report!%0A%20%20-%20type:%20input%0A%20%20%20%20id:%20contact%0A%20%20%20%20attributes:%0A%20%20%20%20%20%20label:%20Contact%20Details%0A%20%20%20%20%20%20description:%20How%20can%20we%20get%20in%20touch%20with%20you%20if%20we%20need%20more%20info?%0A%20%20%20%20%20%20placeholder:%20ex.%20email@example.com%0A%20%20%20%20validations:%0A%20%20%20%20%20%20required:%20false%0A%20%20-%20type:%20textarea%0A%20%20%20%20id:%20what-happened%0A%20%20%20%20attributes:%0A%20%20%20%20%20%20label:%20What%20happened?%0A%20%20%20%20%20%20description:%20Also%20tell%20us,%20what%20did%20you%20expect%20to%20happen?%0A%20%20%20%20%20%20placeholder:%20Tell%20us%20what%20you%20see!%0A%20%20%20%20%20%20value:%20%22A%20bug%20happened!%22%0A%20%20%20%20validations:%0A%20%20%20%20%20%20required:%20true%0A%20%20-%20type:%20dropdown%0A%20%20%20%20id:%20version%0A%20%20%20%20attributes:%0A%20%20%20%20%20%20label:%20Version%0A%20%20%20%20%20%20description:%20What%20version%20of%20our%20software%20are%20you%20running?%0A%20%20%20%20%20%20options:%0A%20%20%20%20%20%20%20%20-%201.0.2%20(Default)%0A%20%20%20%20%20%20%20%20-%201.0.3%20(Edge)%0A%20%20%20%20%20%20default:%200%0A%20%20%20%20validations:%0A%20%20%20%20%20%20required:%20true%0A%20%20-%20type:%20dropdown%0A%20%20%20%20id:%20browsers%0A%20%20%20%20attributes:%0A%20%20%20%20%20%20label:%20What%20browsers%20are%20you%20seeing%20the%20problem%20on?%0A%20%20%20%20%20%20multiple:%20true%0A%20%20%20%20%20%20options:%0A%20%20%20%20%20%20%20%20-%20Firefox%0A%20%20%20%20%20%20%20%20-%20Chrome%0A%20%20%20%20%20%20%20%20-%20Safari%0A%20%20%20%20%20%20%20%20-%20Microsoft%20Edge%0A%20%20-%20type:%20textarea%0A%20%20%20%20id:%20logs%0A%20%20%20%20attributes:%0A%20%20%20%20%20%20label:%20Relevant%20log%20output%0A%20%20%20%20%20%20description:%20Please%20copy%20and%20paste%20any%20relevant%20log%20output.%20This%20will%20be%20automatically%20formatted%20into%20code,%20so%20no%20need%20for%20backticks.%0A%20%20%20%20%20%20render:%20shell%0A%20%20-%20type:%20checkboxes%0A%20%20%20%20id:%20terms%0A%20%20%20%20attributes:%0A%20%20%20%20%20%20label:%20Code%20of%20Conduct%0A%20%20%20%20%20%20description:%20By%20submitting%20this%20issue,%20you%20agree%20to%20follow%20our%20%5BCode%20of%20Conduct%5D(https://example.com)%0A%20%20%20%20%20%20options:%0A%20%20%20%20%20%20%20%20-%20label:%20I%20agree%20to%20follow%20this%20project's%20Code%20of%20Conduct%0A%20%20%20%20%20%20%20%20%20%20required:%20true%0A