-
Notifications
You must be signed in to change notification settings - Fork 400
Open
Labels
sshIssue in vscode-remote SSHIssue in vscode-remote SSH
Description
Is there an existing issue for this bug?
- I have searched the existing open issues and found none that apply.
- If I find any issue of interest that is related or closed, I will included a link to it in this issue.
Required Troubleshooting Steps
- I have read and performed the troubleshooting steps
- I have tried both values of the
remote.SSH.useLocalServersetting - My issue was not covered in the Tips and Tricks linked from the Troubleshooting Wiki.
- I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar
[Optional] Diagnose with Copilot
I did not ask the @remote-ssh participant for help
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
I did not try step 2 of the troubleshooting steps
Remote-SSH Log
Remote-SSH Log
[08:42:38.907] Log Level: 2
[08:42:38.916] VS Code version: 1.106.3
[08:42:38.916] Remote-SSH version: remote-ssh@0.120.0
[08:42:38.916] darwin arm64
[08:42:38.919] SSH Resolver called for "ssh-remote+mako", attempt 1
[08:42:38.922] remote.SSH.useLocalServer = true
[08:42:38.922] remote.SSH.useExecServer = true
[08:42:38.923] remote.SSH.bindHost = {}
[08:42:38.923] remote.SSH.path =
[08:42:38.923] remote.SSH.configFile =
[08:42:38.923] remote.SSH.useFlock = true
[08:42:38.923] remote.SSH.lockfilesInTmp = false
[08:42:38.923] remote.SSH.localServerDownload = auto
[08:42:38.923] remote.SSH.remoteServerListenOnSocket = false
[08:42:38.923] remote.SSH.defaultExtensions = ["streetsidesoftware.code-spell-checker","christian-kohler.path-intellisense","psioniq.psi-header","ms-python.python","ms-python.vscode-pylance","mrmlnc.vscode-duplicate","github.vscode-pull-request-github","eamodio.gitlens","esbenp.prettier-vscode","redhat.vscode-yaml","charliermarsh.ruff"]
[08:42:38.923] remote.SSH.defaultExtensionsIfInstalledLocally = []
[08:42:38.923] remote.SSH.loglevel = 2
[08:42:38.924] remote.SSH.enableDynamicForwarding = true
[08:42:38.924] remote.SSH.enableRemoteCommand = false
[08:42:38.924] remote.SSH.serverPickPortsFromRange = {}
[08:42:38.924] remote.SSH.serverInstallPath = {}
[08:42:38.924] remote.SSH.permitPtyAllocation = false
[08:42:38.924] remote.SSH.preferredLocalPortRange = undefined
[08:42:38.924] remote.SSH.useCurlAndWgetConfigurationFiles = false
[08:42:38.924] remote.SSH.experimental.chat = true
[08:42:38.924] remote.SSH.experimental.enhancedSessionLogs = true
[08:42:38.924] remote.SSH.httpProxy = {"*":""}
[08:42:38.924] remote.SSH.httpsProxy = {"*":""}
[08:42:38.930] SSH Resolver called for host: mako
[08:42:38.930] Setting up SSH remote "mako"
[08:42:38.934] Acquiring local install lock: /var/folders/5g/fgdzk0h51yl6kyrfwyl3wjgc0000gn/T/vscode-remote-ssh-eb8c666d-install.lock
[08:42:38.934] Looking for existing server data file at /Users/gallegoj/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-eb8c666d-bf9252a2fb45be6893dd8870c0bf37e2e1766d61-0.120.0-es/data.json
[08:42:38.934] No existing data file
[08:42:38.935] Using commit id "bf9252a2fb45be6893dd8870c0bf37e2e1766d61" and quality "stable" for server
[08:42:38.935] Extensions to install: streetsidesoftware.code-spell-checker, christian-kohler.path-intellisense, psioniq.psi-header, ms-python.python, ms-python.vscode-pylance, mrmlnc.vscode-duplicate, github.vscode-pull-request-github, eamodio.gitlens, esbenp.prettier-vscode, redhat.vscode-yaml, charliermarsh.ruff
[08:42:38.937] Install and start server if needed
[08:42:38.939] PATH: /Users/gallegoj/.pyenv/bin:/bin:/opt/homebrew/opt/postgresql@17/bin:/opt/homebrew/bin:/usr/local/sbin:/Users/gallegoj/.cargo/bin:/usr/local/bin:/Users/gallegoj/.local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/Library/TeX/texbin
[08:42:38.939] Checking ssh with "ssh -V"
[08:42:38.946] > OpenSSH_10.2p1, OpenSSL 3.6.0 1 Oct 2025
[08:42:38.948] askpass server listening on /var/folders/5g/fgdzk0h51yl6kyrfwyl3wjgc0000gn/T/vscode-ssh-askpass-98d0b92691b05c410cfa765be1cec1edf2cb0891.sock
[08:42:38.948] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/5g/fgdzk0h51yl6kyrfwyl3wjgc0000gn/T/vscode-ssh-askpass-0e604112d482502e3d0f2e1acba7a88ff455ada6.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","53863","-o","ConnectTimeout=30","mako","bash"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/gallegoj/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-eb8c666d-bf9252a2fb45be6893dd8870c0bf37e2e1766d61-0.120.0-es/data.json"}
[08:42:38.948] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.QvhWjSZC00/Listeners","SHELL":"/usr/local/bin/fish","DISPLAY":"/private/tmp/com.apple.launchd.HIKhhReh1A/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/gallegoj/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/gallegoj/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/5g/fgdzk0h51yl6kyrfwyl3wjgc0000gn/T/vscode-ssh-askpass-98d0b92691b05c410cfa765be1cec1edf2cb0891.sock"}
[08:42:38.949] Spawned 59102
[08:42:38.949] Using connect timeout of 32 seconds
[08:42:39.009] > local-server-1> Running ssh connection command: ssh -v -T -D 53863 -o ConnectTimeout=30 mako bash
[08:42:39.010] > local-server-1> Spawned ssh, pid=59110
[08:42:39.108] stderr> debug1: Server host key: ssh-ed25519 SHA256:pQ/mK3CaCNuqDlJO3rTI1hQqA8S0N+ydX2XcEFFQrOc
[08:42:39.210] stderr> Authenticated to 10.155.88.196 ([10.155.88.196]:22) using "publickey".
[08:42:39.210] stderr> bind [::1]:5433: Address already in use
[08:42:39.210] stderr> bind [127.0.0.1]:5433: Address already in use
[08:42:39.210] stderr> channel_setup_fwd_listener_tcpip: cannot listen to port: 5433
[08:42:39.210] stderr> bind [::1]:59001: Address already in use
[08:42:39.210] stderr> bind [127.0.0.1]:59001: Address already in use
[08:42:39.210] stderr> channel_setup_fwd_listener_tcpip: cannot listen to port: 59001
[08:42:39.210] stderr> bind [::1]:25901: Address already in use
[08:42:39.211] stderr> bind [127.0.0.1]:25901: Address already in use
[08:42:39.211] stderr> channel_setup_fwd_listener_tcpip: cannot listen to port: 25901
[08:42:39.350] > ready: 530fa32d8ee2
[08:42:39.379] > Linux 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025
[08:42:39.379] Platform: linux
[08:42:39.385] > /home/linuxbrew/.linuxbrew/bin/fish
[08:42:39.385] Parent Shell: fish
[08:42:39.385] Parent Shell pid: 59102
[08:42:39.386] Waiting for subshell to start
[08:42:39.396] > 2122804
[08:42:39.396] stdout -> '2122804'
[08:42:39.396] sub-process detected
[08:42:39.411] > 530fa32d8ee2: running
> Script executing under PID: 2122804
[08:42:39.420] > Found existing installation at /home/gallegoj/.vscode-server...
> Starting VS Code CLI...
[08:42:39.433] > Removing old logfile at /home/gallegoj/.vscode-server/.cli.bf9252a2fb45be6893dd8870c0bf37e2e1766d61.log
[08:42:39.433] > Spawned remote CLI: 2122822
[08:42:39.435] > Waiting for server log...
[08:42:39.476] > Waiting for server log...
[08:42:39.514] > 530fa32d8ee2: start
> listeningOn==127.0.0.1:45401==
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/1004==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==89==
> execServerToken==1a111aaa-a111-1a1a-aa11-1111111aaaa1==
> platformDownloadPath==cli-alpine-x64==
> SSH_AUTH_SOCK==/tmp/ssh-kxJEpoaJwB/agent.2122764==
> DISPLAY==mako:12.0==
> 530fa32d8ee2: end
[08:42:39.515] Received install output:
listeningOn==127.0.0.1:45401==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1004==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==89==
execServerToken==1a111aaa-a111-1a1a-aa11-1111111aaaa1==
platformDownloadPath==cli-alpine-x64==
SSH_AUTH_SOCK==/tmp/ssh-kxJEpoaJwB/agent.2122764==
DISPLAY==mako:12.0==
[08:42:39.515] Remote server is listening on port 45401
[08:42:39.515] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":45401},"osReleaseId":"ubuntu","arch":"x86_64","sshAuthSock":"/tmp/ssh-kxJEpoaJwB/agent.2122764","display":"mako:12.0","tmpDir":"/run/user/1004","platform":"linux","execServerToken":"1a111aaa-a111-1a1a-aa11-1111111aaaa1"},"serverStartTime":89,"installUnpackCode":""}
[08:42:39.516] Persisting server connection details to /Users/gallegoj/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-eb8c666d-bf9252a2fb45be6893dd8870c0bf37e2e1766d61-0.120.0-es/data.json
[08:42:39.520] Starting forwarding server. local port 53867 -> socksPort 53863 -> remotePort 45401
[08:42:39.520] Forwarding server listening on port 53867
[08:42:39.521] Waiting for ssh tunnel to be ready
[08:42:39.522] [Forwarding server port 53867] Got connection 0
[08:42:39.522] Tunneled port 45401 to local port 53867
[08:42:39.522] Resolved "ssh-remote+mako" to "port 53867"
[08:42:39.525] Initizing new exec server for ssh-remote+mako
[08:42:39.525] Resolving exec server at port 53867
[08:42:39.525] [Forwarding server port 53867] Got connection 1
[08:42:39.599] Exec server for ssh-remote+mako created and cached
[08:42:39.599] Extensions to install: streetsidesoftware.code-spell-checker, christian-kohler.path-intellisense, psioniq.psi-header, ms-python.python, ms-python.vscode-pylance, mrmlnc.vscode-duplicate, github.vscode-pull-request-github, eamodio.gitlens, esbenp.prettier-vscode, redhat.vscode-yaml, charliermarsh.ruff
[08:42:39.600] Updating $SSH_AUTH_SOCK: ln -f -s "/tmp/ssh-kxJEpoaJwB/agent.2122764" "/run/user/1004/vscode-ssh-auth-sock-654726512"
[08:42:39.600] Using cwd: vscode-remote://ssh-remote%2Bmako/
[08:42:39.601] Remote extension host environment: {"SSH_AUTH_SOCK":"/run/user/1004/vscode-ssh-auth-sock-654726512","DISPLAY":"mako:12.0"}
[08:42:39.609] ------
[08:42:39.609] No hints found in the recent session.
[08:42:39.665] [server] Checking /home/gallegoj/.vscode-server/cli/servers/Stable-bf9252a2fb45be6893dd8870c0bf37e2e1766d61/log.txt and /home/gallegoj/.vscode-server/cli/servers/Stable-bf9252a2fb45be6893dd8870c0bf37e2e1766d61/pid.txt for a running server...
[08:42:39.668] [server] Found running server (pid=1935967)
[08:42:39.708] [server] Installing extensions...
[08:42:40.996] "Update SSH_AUTH_SOCK" terminal command done
Expected Behavior
I expect the code CLI command to be available when I open a terminal in VSCode after connecting to a remote server over SSH.
Actual Behavior
The code command is not available.
Steps To Reproduce
- Open VSCode
- Use VSCode Remote SSH to connect to a remote server.
- Open a new terminal.
- Try to run
code.
Anything else?
No response
Metadata
Metadata
Assignees
Labels
sshIssue in vscode-remote SSHIssue in vscode-remote SSH