Skip to content

Remoting to local VM on macOS host ends with "No route to host" #11140

Description

@risa2000

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.useLocalServer setting
  • 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

[16:25:29.006] Log Level: 1
[16:25:29.007] Registering chat participant remote-ssh
[16:25:29.008] SSH Resolver called for "ssh-remote+debian-utm", attempt 1
[16:25:29.010] remote.SSH.useLocalServer = true
[16:25:29.010] remote.SSH.useExecServer = true
[16:25:29.010] remote.SSH.bindHost = {}
[16:25:29.010] remote.SSH.path = 
[16:25:29.011] remote.SSH.configFile = 
[16:25:29.011] remote.SSH.useFlock = true
[16:25:29.012] remote.SSH.lockfilesInTmp = false
[16:25:29.012] remote.SSH.localServerDownload = auto
[16:25:29.012] remote.SSH.remoteServerListenOnSocket = false
[16:25:29.012] remote.SSH.defaultExtensions = []
[16:25:29.012] remote.SSH.defaultExtensionsIfInstalledLocally = []
[16:25:29.012] remote.SSH.loglevel = 1
[16:25:29.012] remote.SSH.enableDynamicForwarding = true
[16:25:29.012] remote.SSH.enableRemoteCommand = false
[16:25:29.012] remote.SSH.serverPickPortsFromRange = {}
[16:25:29.012] remote.SSH.serverInstallPath = {}
[16:25:29.012] remote.SSH.permitPtyAllocation = false
[16:25:29.012] remote.SSH.preferredLocalPortRange = undefined
[16:25:29.012] remote.SSH.useCurlAndWgetConfigurationFiles = false
[16:25:29.012] remote.SSH.experimental.chat = true
[16:25:29.012] remote.SSH.experimental.enhancedSessionLogs = true
[16:25:29.012] remote.SSH.httpProxy = {"*":""}
[16:25:29.012] remote.SSH.httpsProxy = {"*":""}
[16:25:29.016] VS Code version: 1.102.3
[16:25:29.016] Remote-SSH version: remote-ssh@0.120.0
[16:25:29.016] darwin arm64
[16:25:29.017] Found relevant configuration for host debian-utm in JSON data
[16:25:29.017] SSH Resolver called for host: debian-utm
[16:25:29.017] Setting up SSH remote "debian-utm"
[16:25:29.021] Acquiring local install lock: /var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-remote-ssh-33717591-install.lock
[16:25:29.022] Looking for existing server data file at /Users/risa/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-33717591-488a1f239235055e34e673291fb8d8c810886f81-0.120.0-es/data.json
[16:25:29.022] No existing data file
[16:25:29.022] Using commit id "488a1f239235055e34e673291fb8d8c810886f81" and quality "stable" for server
[16:25:29.022] Extensions to install: 
[16:25:29.024] Install and start server if needed
[16:25:29.027] PATH: /Users/risa/.virtualenvs/py313/bin:/Users/risa/Dev/LLVM/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/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/X11/bin:/Library/Apple/usr/bin
[16:25:29.027] Checking ssh with "ssh -V"
[16:25:29.031] > OpenSSH_9.9p2, LibreSSL 3.3.6

[16:25:29.033] askpass server listening on /var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-ssh-askpass-3996598f931fd38949b53f23522334fecc486f67.sock
[16:25:29.033] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-ssh-askpass-fdbbaeb409f2881239bf0daf71f171fc7e2c1c45.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","61469","-o","ConnectTimeout=15","debian-utm"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/risa/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-33717591-488a1f239235055e34e673291fb8d8c810886f81-0.120.0-es/data.json"}
[16:25:29.033] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.6ExNsjrmCl/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.EIzX1uc1y4/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/risa/.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/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-ssh-askpass-3996598f931fd38949b53f23522334fecc486f67.sock"}
[16:25:29.033] Spawned 11706
[16:25:29.034] Using connect timeout of 17 seconds
[16:25:29.095] > local-server-1> Running ssh connection command: ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utm
[16:25:29.096] > local-server-1> Spawned ssh, pid=11713
[16:25:29.100] stderr> OpenSSH_9.9p2, LibreSSL 3.3.6
[16:25:29.100] stderr> debug1: Reading configuration data /Users/risa/.ssh/config
[16:25:29.100] stderr> debug1: /Users/risa/.ssh/config line 137: Applying options for debian-utm
[16:25:29.100] stderr> debug1: Reading configuration data /etc/ssh/ssh_config
[16:25:29.100] stderr> debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
[16:25:29.100] stderr> debug1: /etc/ssh/ssh_config line 54: Applying options for *
[16:25:29.100] stderr> debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
[16:25:29.101] stderr> debug1: Connecting to debian-utm.local [192.168.64.4] port 22.
[16:25:29.102] stderr> debug1: connect to address 192.168.64.4 port 22: No route to host
[16:25:29.102] stderr> debug1: Connecting to debian-utm.local [fda1:164f:da3f:c7fe:f0c8:f8ff:fe11:ca] port 22.
[16:25:29.102] stderr> debug1: connect to address fda1:164f:da3f:c7fe:f0c8:f8ff:fe11:ca port 22: No route to host
[16:25:29.102] stderr> ssh: connect to host debian-utm.local port 22: No route to host
[16:25:29.102] > local-server-1> ssh child died, shutting down
[16:25:29.104] Local server exit: 0
[16:25:29.104] Received install output: local-server-1> Running ssh connection command: ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utm
local-server-1> Spawned ssh, pid=11713
OpenSSH_9.9p2, LibreSSL 3.3.6
ssh: connect to host debian-utm.local port 22: No route to host
local-server-1> ssh child died, shutting down

[16:25:29.104] Stopped parsing output early. Remaining text: local-server-1> Running ssh connection command: ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utmlocal-server-1> Spawned ssh, pid=11713OpenSSH_9.9p2, LibreSSL 3.3.6ssh: connect to host debian-utm.local port 22: No route to hostlocal-server-1> ssh child died, shutting down
[16:25:29.104] WARN: $PLATFORM is undefined in installation script output.  Errors may be dropped.
[16:25:29.105] Resolver error: Error: No route to host
    at y.Offline (/Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:744802)
    at /Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:741290
    at t.handleInstallOutput (/Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:741433)
    at e (/Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:798600)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async /Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:823806
    at async t.withShowDetailsEvent (/Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:827501)
    at async /Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:795312
    at async P (/Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:793367)
    at async t.resolveWithLocalServer (/Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:794864)
    at async A (/Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:820659)
    at async t.resolve (/Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:824898)
    at async /Users/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:1113660
[16:25:29.106] TELEMETRY: {"eventName":"resolver","properties":{"osReleaseId":"","arch":"","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"1","gotUnrecognizedPrompt":"0","dynamicForwarding":"1","localServer":"1","didLocalDownload":"0","installUnpackCode":"0","outcome":"failure","reason":"OfflineError","exitCodeLabel":""},"measures":{"resolveAttempts":1,"isExecServer":0,"timing.totalResolveTime":97,"timing.preSshTime":25}}
[16:25:29.106] ------




[16:25:29.106]  ---------- [Session Summary] ----------- 
[16:25:29.106] [OfflineError]: Error: OfflineError (No route to host)
[16:25:29.106]  ---------------------------------------- 
[16:25:29.488] Opening exec server for ssh-remote+debian-utm
[16:25:29.494] Found relevant configuration for host debian-utm in JSON data
[16:25:29.497] Initizing new exec server for ssh-remote+debian-utm
[16:25:29.498] Acquiring local install lock: /var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-remote-ssh-33717591-install.lock
[16:25:29.500] Looking for existing server data file at /Users/risa/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-33717591-488a1f239235055e34e673291fb8d8c810886f81-0.120.0-es/data.json
[16:25:29.504] Opening exec server for ssh-remote+debian-utm
[16:25:29.504] No existing data file
[16:25:29.505] Using commit id "488a1f239235055e34e673291fb8d8c810886f81" and quality "stable" for server
[16:25:29.505] Extensions to install: 
[16:25:29.513] Install and start server if needed
[16:25:29.513] Found relevant configuration for host debian-utm in JSON data
[16:25:29.521] askpass server listening on /var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-ssh-askpass-742c7e372bc9e405f752ccb4a182f19e4f80a4a6.sock
[16:25:29.521] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-ssh-askpass-52dba155be96a6eed8381cda2d2f0286e5908dd1.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","61469","-o","ConnectTimeout=15","debian-utm"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/risa/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-33717591-488a1f239235055e34e673291fb8d8c810886f81-0.120.0-es/data.json"}
[16:25:29.521] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.6ExNsjrmCl/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.EIzX1uc1y4/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/risa/.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/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-ssh-askpass-742c7e372bc9e405f752ccb4a182f19e4f80a4a6.sock"}
[16:25:29.523] Spawned 11715
[16:25:29.523] Using connect timeout of 17 seconds
[16:25:29.626] > local-server-2> Running ssh connection command: ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utm
[16:25:29.627] > local-server-2> Spawned ssh, pid=11722
[16:25:29.632] stderr> OpenSSH_9.9p2, LibreSSL 3.3.6
[16:25:29.632] stderr> debug1: Reading configuration data /Users/risa/.ssh/config
[16:25:29.632] stderr> debug1: /Users/risa/.ssh/config line 137: Applying options for debian-utm
[16:25:29.632] stderr> debug1: Reading configuration data /etc/ssh/ssh_config
[16:25:29.632] stderr> debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
[16:25:29.632] stderr> debug1: /etc/ssh/ssh_config line 54: Applying options for *
[16:25:29.632] stderr> debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
[16:25:29.633] stderr> debug1: Connecting to debian-utm.local [192.168.64.4] port 22.
[16:25:29.633] stderr> debug1: connect to address 192.168.64.4 port 22: No route to host
[16:25:29.633] stderr> debug1: Connecting to debian-utm.local [fda1:164f:da3f:c7fe:f0c8:f8ff:fe11:ca] port 22.
[16:25:29.633] stderr> debug1: connect to address fda1:164f:da3f:c7fe:f0c8:f8ff:fe11:ca port 22: No route to host
[16:25:29.633] stderr> ssh: connect to host debian-utm.local port 22: No route to host
[16:25:29.634] > local-server-2> ssh child died, shutting down
[16:25:29.636] Local server exit: 0
[16:25:29.636] Received install output: local-server-2> Running ssh connection command: ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utm
local-server-2> Spawned ssh, pid=11722
OpenSSH_9.9p2, LibreSSL 3.3.6
ssh: connect to host debian-utm.local port 22: No route to host
local-server-2> ssh child died, shutting down

[16:25:29.636] Stopped parsing output early. Remaining text: local-server-2> Running ssh connection command: ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utmlocal-server-2> Spawned ssh, pid=11722OpenSSH_9.9p2, LibreSSL 3.3.6ssh: connect to host debian-utm.local port 22: No route to hostlocal-server-2> ssh child died, shutting down
[16:25:29.636] WARN: $PLATFORM is undefined in installation script output.  Errors may be dropped.
[16:25:29.636] Exec server for ssh-remote+debian-utm failed: Error: No route to host
[16:25:29.636] Existing exec server for ssh-remote+debian-utm errored (Error: No route to host)
[16:25:29.637] Initizing new exec server for ssh-remote+debian-utm
[16:25:29.637] Acquiring local install lock: /var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-remote-ssh-33717591-install.lock
[16:25:29.637] Error opening exec server for ssh-remote+debian-utm: Error: No route to host
[16:25:29.637]  ---------- [Session Summary] ----------- 
[16:25:29.637] [OfflineError]: Error: OfflineError (No route to host)
[16:25:29.637]  ---------------------------------------- 
[16:25:29.637] Looking for existing server data file at /Users/risa/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-33717591-488a1f239235055e34e673291fb8d8c810886f81-0.120.0-es/data.json
[16:25:29.637] No existing data file
[16:25:29.637] Using commit id "488a1f239235055e34e673291fb8d8c810886f81" and quality "stable" for server
[16:25:29.637] Extensions to install: 
[16:25:29.639] Install and start server if needed
[16:25:29.640] askpass server listening on /var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-ssh-askpass-f7ccd25cdb183f879e709dbac9cb9c0d8af094f1.sock
[16:25:29.640] Spawning local server with {"serverId":3,"ipcHandlePath":"/var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-ssh-askpass-7dfab82cb4967069849bfa770692f70c530d823a.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","61469","-o","ConnectTimeout=15","debian-utm"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/risa/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-33717591-488a1f239235055e34e673291fb8d8c810886f81-0.120.0-es/data.json"}
[16:25:29.640] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.6ExNsjrmCl/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.EIzX1uc1y4/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/risa/.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/risa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/sc/s9p1d79s64s0rnyx1200b_f40000gn/T/vscode-ssh-askpass-f7ccd25cdb183f879e709dbac9cb9c0d8af094f1.sock"}
[16:25:29.640] Spawned 11723
[16:25:29.640] Using connect timeout of 17 seconds
[16:25:29.713] > local-server-3> Running ssh connection command: ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utm
[16:25:29.714] > local-server-3> Spawned ssh, pid=11730
[16:25:29.719] stderr> OpenSSH_9.9p2, LibreSSL 3.3.6
[16:25:29.719] stderr> debug1: Reading configuration data /Users/risa/.ssh/config
[16:25:29.719] stderr> debug1: /Users/risa/.ssh/config line 137: Applying options for debian-utm
[16:25:29.719] stderr> debug1: Reading configuration data /etc/ssh/ssh_config
[16:25:29.719] stderr> debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
[16:25:29.719] stderr> debug1: /etc/ssh/ssh_config line 54: Applying options for *
[16:25:29.719] stderr> debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
[16:25:29.721] stderr> debug1: Connecting to debian-utm.local [192.168.64.4] port 22.
[16:25:29.721] stderr> debug1: connect to address 192.168.64.4 port 22: No route to host
[16:25:29.721] stderr> debug1: Connecting to debian-utm.local [fda1:164f:da3f:c7fe:f0c8:f8ff:fe11:ca] port 22.
[16:25:29.721] stderr> debug1: connect to address fda1:164f:da3f:c7fe:f0c8:f8ff:fe11:ca port 22: No route to host
[16:25:29.721] stderr> ssh: connect to host debian-utm.local port 22: No route to host
[16:25:29.724] > local-server-3> ssh child died, shutting down
[16:25:29.742] Local server exit: 0
[16:25:29.742] Received install output: local-server-3> Running ssh connection command: ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utm
local-server-3> Spawned ssh, pid=11730
OpenSSH_9.9p2, LibreSSL 3.3.6
ssh: connect to host debian-utm.local port 22: No route to host
local-server-3> ssh child died, shutting down

[16:25:29.742] Stopped parsing output early. Remaining text: local-server-3> Running ssh connection command: ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utmlocal-server-3> Spawned ssh, pid=11730OpenSSH_9.9p2, LibreSSL 3.3.6ssh: connect to host debian-utm.local port 22: No route to hostlocal-server-3> ssh child died, shutting down
[16:25:29.742] WARN: $PLATFORM is undefined in installation script output.  Errors may be dropped.
[16:25:29.743] Exec server for ssh-remote+debian-utm failed: Error: No route to host
[16:25:29.743] Error opening exec server for ssh-remote+debian-utm: Error: No route to host
[16:25:29.743]  ---------- [Session Summary] ----------- 
[16:25:29.743] [OfflineError]: Error: OfflineError (No route to host)
[16:25:29.743]  ---------------------------------------- 
[16:25:40.736] ConfigFileWatcher: start watching file:///Users/risa/.ssh/config
[16:25:40.736] ConfigFileWatcher: adding save listener
[16:25:40.736] ConfigFileWatcher: adding close listener

Expected Behavior

Command which fails in VSCode

ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utm

runs completely fine in terminal:

> ssh -v -T -D 61469 -o ConnectTimeout=15 debian-utm
OpenSSH_9.9p2, LibreSSL 3.3.6
debug1: Reading configuration data /Users/risa/.ssh/config
debug1: /Users/risa/.ssh/config line 137: Applying options for debian-utm
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to debian-utm.local [192.168.64.4] port 22.
debug1: fd 5 clearing O_NONBLOCK
debug1: Connection established.
debug1: identity file /Users/risa/.ssh/risa2_ed25519_20200419.ssh.key type 3
debug1: identity file /Users/risa/.ssh/risa2_ed25519_20200419.ssh.key-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.2p1 Debian-2+deb12u6
debug1: compat_banner: match: OpenSSH_9.2p1 Debian-2+deb12u6 pat OpenSSH* compat 0x04000000
debug1: Authenticating to debian-utm.local:22 as 'risa'
debug1: load_hostkeys: fopen /Users/risa/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: sntrup761x25519-sha512
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:zttWCePmuNqcgqh7D7nl+GF3s8HfBxi90DosxXjjFLw
debug1: load_hostkeys: fopen /Users/risa/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'debian-utm.local' is known and matches the ED25519 host key.
debug1: Found key in /Users/risa/.ssh/known_hosts:33
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com,ssh-dss,ssh-rsa,rsa-sha2-256,rsa-sha2-512>
debug1: kex_ext_info_check_ver: publickey-hostbound@openssh.com=<0>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 2 keys
debug1: Will attempt key: /Users/risa/.ssh/risa2_ed25519_20200419.ssh.key ED25519 SHA256:mmkjB+kMLOg9L/oabSIW38PQCGOBp6c3QGLDd9hpjU8 explicit agent
debug1: Offering public key: /Users/risa/.ssh/risa2_ed25519_20200419.ssh.key ED25519 SHA256:mmkjB+kMLOg9L/oabSIW38PQCGOBp6c3QGLDd9hpjU8 explicit agent
debug1: Server accepts key: /Users/risa/.ssh/risa2_ed25519_20200419.ssh.key ED25519 SHA256:mmkjB+kMLOg9L/oabSIW38PQCGOBp6c3QGLDd9hpjU8 explicit agent
Authenticated to debian-utm.local ([192.168.64.4]:22) using "publickey".
debug1: Local connections to LOCALHOST:61469 forwarded to remote address socks:0
debug1: Local forwarding listening on ::1 port 61469.
debug1: channel 0: new port-listener [port listener] (inactive timeout: 0)
debug1: Local forwarding listening on 127.0.0.1 port 61469.
debug1: channel 1: new port-listener [port listener] (inactive timeout: 0)
debug1: channel 2: new session [client-session] (inactive timeout: 0)
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: client_input_hostkeys: searching /Users/risa/.ssh/known_hosts for debian-utm.local / (none)
debug1: client_input_hostkeys: searching /Users/risa/.ssh/known_hosts2 for debian-utm.local / (none)
debug1: client_input_hostkeys: hostkeys file /Users/risa/.ssh/known_hosts2 does not exist
debug1: client_input_hostkeys: no new or deprecated keys from server
debug1: Remote: /home/risa/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/risa/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Sending environment.
debug1: channel 2: setting env LANG = "en_US.UTF-8"
debug1: channel 2: setting env LC_ALL = "en_US.UTF-8"
debug1: channel 2: setting env LC_CTYPE = "en_US.UTF-8"
debug1: pledge: network
Linux debian-utm 6.1.0-37-arm64 #1 SMP Debian 6.1.140-1 (2025-05-22) aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
^Cdebug1: channel 0: free: port listener, nchannels 3
debug1: channel 1: free: port listener, nchannels 2
debug1: channel 2: free: client-session, nchannels 1
Killed by signal 2.

Actual Behavior

VSCode does not connect to the remote and kills the session. (see the log above)

Steps To Reproduce

Try opening remote connection to the local VM host.

Anything else?

  • Just updated to macOS 15.6, I believe it was working in previous version 15.5.x.

  • Name resolution for local VM is done through mDNS (avahi daemon on the guest OS - debian).

  • My ssh_config file has the following section for debian-utm host:

Host debian-utm
  HostName debian-utm.local
  Port 22
  User risa
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/private.ssh.key
  IdentitiesOnly yes

Metadata

Metadata

Assignees

Labels

sshIssue in vscode-remote SSH

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions