-
Notifications
You must be signed in to change notification settings - Fork 304
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" extension 0.66 doesn't respect RemoteCommand in SSH config #5814
Comments
Hey @likan999 thanks for letting us know quickly. What does your config look like? And just as a sanity check are you able to connect to your host through terminal? |
My use case is to SSH into remote server and immediately enter toolbox, so the config is
By ssh to this host, it automatically enters the toolbox, which has all necessary development tools. In previous version 0.65.8, it works perfectly; now it ignores the RemoteCommand directive in ssh config. I looked a little deeper into the cryptic extension.js of this extension (I don't think it is open source, isn't it?), all it is due to this piece of code:
The logic here is if the configuration has RemoteCommand directive, it appends In previous version this piece of code exists as well, but in my config, the RemoteCommand directive is in another config file, which is included using an Include directive, and my guess is in previous versions, it doesn't parse the included file, but in 0.66.0, it does, which causes This RemoteCommand is very useful, and I'm not the only one that needs it: see #4474. Please add it. I understand there is a concern RemoteCommand doesn't work in general, but there are cases it is needed, so why not add an option in preferences, namely "Allow RemoteCommand". By default it is false, which is the current behavior; when it is enabled, it will not append the |
Wow thank you for the detailed inspection! You're right that we are overriding RemoteCommand with none to force ssh to ignore it. The issue is if we allow RemoteCommand we won't be able run a script on your remote to install and start VS Code on your server. For this reason we ignored RemoteCommand in #481 where we needed to silence. If you could upvote #4474 I can inspect this issue later this month. Something I am confused about is how did RemoteCommand work for you before if we weren't including that host and you wouldn't have been able to connect to that host? |
Going to close this issue since it's a duplicate of #4474 by the way! |
@tanhakabir Are you sure it's a duplicate? I didn't track extension version, but I configured RemoteCommand in April and I believe it was working a few months. |
@mak3 we overruled RemoteCommand to be none in this issue: #481 (comment) I'm not sure when it was noticed or how often everyone keeps their extensions up to date so I can't say why it was only submitted in February but I'm confident this issue is a duplicate of that one. |
Steps to Reproduce:
Does this issue occur when you try this locally?: N/A - this is all about how SSH connection is made
Does this issue occur when you try this locally and all extensions are disabled?: N/A
The text was updated successfully, but these errors were encountered: