-
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
VS Code ignores RemoteCommand #6598
Comments
Hi, I have the exact same issue:
SSH config file:
remote.SSH settings:
Connecting to However, connecting directly through the command line via |
Do you have the settings If it still doesn't work could you share your Remote SSH logs? |
Hi, Yes, as the remote.SSH.settings show, both settings
Looking at the logs though, it looks like localserver is set to 0. I believe this is because I have Remote Server Listen on Socket set to true. |
Yes we have this longstanding issue where you can't use remoteListenOnSocket along with useLocalServer: #6086 If you're able to not use remoteListenOnSocket then you will be able to use Remote Command currently |
Are there any patches for this? |
Hi, Actually I tried with these settings:
and this config file:
It's able to connect to However, it fails to connect to both |
@quetant could you share your Remote SSH logs? @DebajyotiS no there's no patch out. My only recommendation is to follow #6086 for an eventual patch |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
I had the same issue for quite some time. "remote.SSH.useLocalServer": true,
"remote.SSH.enableRemoteCommand": true, I finally found out was caused the issue for me. [09:13:11.621] Cannot use RemoteCommand if you have this remote in your "remote.SSH.remotePlatform" setting I commented out the corresponding line for the Linux remote in So maybe this information that |
Hi @lmh91 , can you share more details about your local and remote? I have the remote.Platform bit commented out. But I still cannot connect at all if I have listenOnSocket set to false, and if I set it to true - remoteCommand is ignored. |
My full VS Code settings: {
// "remote.SSH.remotePlatform": {
// "cslg-01-container": "linux",
// },
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": false,
"workbench.startupEditor": "none",
"window.restoreWindows": "none",
"terminal.integrated.commandsToSkipShell": [
"language-julia.interrupt"
],
"julia.symbolCacheDownload": true,
"security.workspace.trust.enabled": false,
"julia.execution.codeInREPL": true,
"editor.inlineSuggest.enabled": true,
// "remote.SSH.showLoginTerminal": true,
// "remote.SSH.logLevel": "trace",
// "remote.SSH.connectTimeout": 30,
"remote.SSH.useLocalServer": true,
"remote.SSH.enableRemoteCommand": true,
// "remote.SSH.suppressWindowsSshWarning": true,
// "remote.SSH.remoteServerListenOnSocket": false,
} My ssh config: (Maybe
(cenv is some script to enter some ubuntu container via singularity) |
I think you need to use: But you don't need it as it is the default? I don't have specified it. |
Thanks a lot! I think it works now. For me the issues were:
|
Just to be clear about "works now": You are now also able to use With just "remote.SSH.useLocalServer": true,
"remote.SSH.enableRemoteCommand": true, and no settings for and |
Exactly so. I have remote.Platform commented out (which I agree should be mentioned in the docs). Then the only other issue was my path to ssh config file, which I then corrected. |
Thanks for the feedback on the docs! I'll add a note about this now |
I am trying to SSH into a remote machine, however the remote command seems to be ignored. This works fine if I run it on a shell.
My SSH config:
Relevant remote.SSH settings:
(Interesting to note for me useLocalServer can only be set to true iff remoteServerListenOnSocket is simulatanously set to true)
log output:
However as I say, this works fine through a cmd shell. Any clue as to why VSCode might be ignoring the remoteCommand?
The text was updated successfully, but these errors were encountered: