microsoft / microsoft/vscode-remote-release

Jetson Orin Nano SSH timeout

Open
#11,570 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ssh
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

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.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

[15:01:29.149] Log Level: 2
[15:01:29.169] VS Code version: 1.114.0
[15:01:29.169] Remote-SSH version: remote-ssh@0.122.0
[15:01:29.170] win32 x64
[15:01:29.178] SSH Resolver called for "ssh-remote+192.168.0.101", attempt 1
[15:01:29.183] remote.SSH.useLocalServer = false
[15:01:29.183] remote.SSH.useExecServer = true
[15:01:29.184] remote.SSH.bindHost = {}
[15:01:29.184] remote.SSH.showLoginTerminal = false
[15:01:29.184] remote.SSH.remotePlatform = {"192.168.0.101":"linux"}
[15:01:29.184] remote.SSH.path = 
[15:01:29.184] remote.SSH.configFile = 
[15:01:29.184] remote.SSH.useFlock = true
[15:01:29.184] remote.SSH.lockfilesInTmp = false
[15:01:29.184] remote.SSH.localServerDownload = auto
[15:01:29.185] remote.SSH.remoteServerListenOnSocket = false
[15:01:29.185] remote.SSH.defaultExtensions = []
[15:01:29.185] remote.SSH.defaultExtensionsIfInstalledLocally = []
[15:01:29.185] remote.SSH.loglevel = 2
[15:01:29.185] remote.SSH.enableDynamicForwarding = true
[15:01:29.185] remote.SSH.enableRemoteCommand = false
[15:01:29.185] remote.SSH.serverPickPortsFromRange = {}
[15:01:29.186] remote.SSH.serverInstallPath = {}
[15:01:29.187] remote.SSH.permitPtyAllocation = false
[15:01:29.187] remote.SSH.preferredLocalPortRange = undefined
[15:01:29.187] remote.SSH.useCurlAndWgetConfigurationFiles = false
[15:01:29.187] remote.SSH.experimental.chat = true
[15:01:29.187] remote.SSH.experimental.enhancedSessionLogs = true
[15:01:29.187] remote.SSH.httpProxy = {"*":""}
[15:01:29.187] remote.SSH.httpsProxy = {"*":""}
[15:01:29.195] SSH Resolver called for host: 192.168.0.101
[15:01:29.195] Setting up SSH remote "192.168.0.101"
[15:01:29.209] Using commit id "e7fb5e96c0730b9deb70b33781f98e2f35975036" and quality "stable" for server
[15:01:29.209] Extensions to install: 
[15:01:29.213] Install and start server if needed
[15:01:29.216] Checking ssh with "C:\Users\user\AppData\Local\Programs\Microsoft VS Code\ssh.exe -V"
[15:01:29.218] Got error from ssh: spawn C:\Users\user\AppData\Local\Programs\Microsoft VS Code\ssh.exe ENOENT
[15:01:29.218] Checking ssh with "C:\Python314\Scripts\ssh.exe -V"
[15:01:29.219] Got error from ssh: spawn C:\Python314\Scripts\ssh.exe ENOENT
[15:01:29.219] Checking ssh with "C:\Python314\ssh.exe -V"
[15:01:29.220] Got error from ssh: spawn C:\Python314\ssh.exe ENOENT
[15:01:29.221] Checking ssh with "C:\Program Files\Quarto\bin\ssh.exe -V"
[15:01:29.221] Got error from ssh: spawn C:\Program Files\Quarto\bin\ssh.exe ENOENT
[15:01:29.222] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\java8path\ssh.exe -V"
[15:01:29.222] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\java8path\ssh.exe ENOENT
[15:01:29.223] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe -V"
[15:01:29.223] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe ENOENT
[15:01:29.223] Checking ssh with "C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\ssh.exe -V"
[15:01:29.224] Got error from ssh: spawn C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\ssh.exe ENOENT
[15:01:29.224] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[15:01:29.225] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[15:01:29.225] Checking ssh with "C:\Windows\ssh.exe -V"
[15:01:29.226] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[15:01:29.226] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[15:01:29.227] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[15:01:29.227] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[15:01:29.228] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[15:01:29.228] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[15:01:29.261] > OpenSSH_for_Windows_9.5p2, LibreSSL 3.8.2

[15:01:29.265] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 56581 "192.168.0.101" sh
[15:01:29.267] Generated SSH command: 'type "C:\Users\user\AppData\Local\Temp\vscode-linux-multi-line-command-192.168.0.101-510252827.sh" | "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 56581 "192.168.0.101" sh'
[15:01:29.268] Using connect timeout of 17 seconds
[15:01:29.269] Terminal shell path: C:\Windows\System32\cmd.exe
[15:01:29.863] > 
[15:01:29.864] Got some output, clearing connection timeout
[15:01:29.878] > 
[15:01:30.063] > jetson@192.168.0.101's password: 
[15:01:30.064] Showing password prompt
[15:01:32.208] Got password response
[15:01:32.208] "install" wrote data to terminal: "******"
[15:01:32.233] > 
[15:01:32.467] > e7f7d1438ead: running
> Script executing under PID: 3999
[15:01:32.559] > Found existing installation at /home/jetson/.vscode-server...
[15:01:32.574] > Starting VS Code CLI...
> Removing old logfile at /home/jetson/.vscode-server/.cli.e7fb5e96c0730b9deb70b33781f98e2f35975036.log
> Spawned remote CLI: 4019
> Waiting for server log...
> Waiting for server log...
> Waiting for server log...
[15:01:32.605] > Waiting for server log...
[15:01:32.636] > Waiting for server log...
[15:01:32.682] > Waiting for server log...
[15:01:32.715] > Waiting for server log...
[15:01:32.736] > Waiting for server log...
[15:01:32.777] > Waiting for server log...
[15:01:32.814] > Waiting for server log...
[15:01:32.856] > e7f7d1438ead: start
> listeningOn==127.0.0.1:42435==
> osReleaseId==ubuntu==
> arch==aarch64==
> vscodeArch==arm64==
> bitness==64==
> tmpDir==/run/user/1000==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==360==
> execServerToken==a1111a1a-a111-1a11-1aa1-11aa11111a11==
> platformDownloadPath==cli-alpine-arm64==
> SSH_AUTH_SOCK====
> DISPLAY====
> e7f7d1438ead: end
[15:01:32.856] Received install output: 
listeningOn==127.0.0.1:42435==
osReleaseId==ubuntu==
arch==aarch64==
vscodeArch==arm64==
bitness==64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==360==
execServerToken==a1111a1a-a111-1a11-1aa1-11aa11111a11==
platformDownloadPath==cli-alpine-arm64==
SSH_AUTH_SOCK====
DISPLAY====

[15:01:32.857] Remote server is listening on port 42435
[15:01:32.857] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":42435},"osReleaseId":"ubuntu","arch":"aarch64","sshAuthSock":"","display":"","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"a1111a1a-a111-1a11-1aa1-11aa11111a11"},"serverStartTime":360,"installUnpackCode":""}
[15:01:32.857] ** Note: Support for architecture "aarch64" is in preview **
[15:01:32.860] Starting forwarding server. local port 52940 -> socksPort 56581 -> remotePort 42435
[15:01:32.861] Forwarding server listening on port 52940
[15:01:32.861] Waiting for ssh tunnel to be ready
[15:01:32.863] [Forwarding server port 52940] Got connection 0
[15:01:32.864] Tunneled port 42435 to local port 52940
[15:01:32.864] Resolved "ssh-remote+192.168.0.101" to "port 52940"
[15:01:32.871] Initizing new exec server for ssh-remote+192.168.0.101
[15:01:32.871] Resolving exec server at port 52940
[15:01:32.874] [Forwarding server port 52940] Got connection 1
[15:01:33.063] Exec server for ssh-remote+192.168.0.101 created and cached
[15:01:33.063] Extensions to install: 
[15:01:33.069] ------




[15:01:33.070] No hints found in the recent session.
[15:01:33.093] [server] Checking /home/jetson/.vscode-server/cli/servers/Stable-e7fb5e96c0730b9deb70b33781f98e2f35975036/log.txt and /home/jetson/.vscode-server/cli/servers/Stable-e7fb5e96c0730b9deb70b33781f98e2f35975036/pid.txt for a running server...
[15:01:33.135] [server] Installing and setting up Visual Studio Code Server...
[15:01:33.136] [server] Server setup complete
[15:01:33.136] [server] Starting server...
[15:01:33.136] [server] Starting server with command... Command { std: "/home/jetson/.vscode-server/cli/servers/Stable-e7fb5e96c0730b9deb70b33781f98e2f35975036/server/bin/code-server" "--connection-token=remotessh" "--accept-server-license-terms" "--start-server" "--enable-remote-auto-shutdown" "--socket-path=/tmp/code-cdf1d22f-1b00-47d5-a6cd-52ca4005bd6c", kill_on_drop: false }
[15:01:34.194] [server] *
[15:01:34.194] [server] * Visual Studio Code Server
[15:01:34.194] [server] *
[15:01:34.194] [server] * By using the software, you agree to
[15:01:34.195] [server] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
[15:01:34.195] [server] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
[15:01:34.195] [server] *
[15:01:34.197] [server] Server bound to /tmp/code-cdf1d22f-1b00-47d5-a6cd-52ca4005bd6c
[15:01:34.197] [server] Extension host agent listening on /tmp/code-cdf1d22f-1b00-47d5-a6cd-52ca4005bd6c
[15:01:34.198] [server] parsed location: "/tmp/code-cdf1d22f-1b00-47d5-a6cd-52ca4005bd6c"
[15:01:34.198] [server] 
[15:01:34.198] [server] Server started
[15:01:34.375] [server] [15:01:35] 
[15:01:34.414] [server] 
[15:01:34.414] [server] 
[15:01:34.414] [server] 
[15:01:34.601] [server] [reconnection-grace-time] No CLI argument provided, using default: 10800000ms (10800s)
[15:01:34.618] [server] [15:01:36] Extension host agent started.
[15:01:34.846] [server] [15:01:36] [<unknown>][cbd18ce7][ExtensionHostConnection] New connection established.
[15:01:34.890] [server] [15:01:36] [<unknown>][d02c05aa][ManagementConnection] New connection established.
[15:01:36.461] [server] [15:01:37] [<unknown>][cbd18ce7][ExtensionHostConnection] <4167> Launched Extension Host Process.
[15:01:37.135] [server] [15:01:38] [<unknown>][cbd18ce7][ExtensionHostConnection] <4167> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)
[15:01:37.135] [server] 
[15:01:40.402] Opening exec server for ssh-remote+192.168.0.101
[15:01:40.416] Verified and reusing cached exec server for ssh-remote+192.168.0.101
[15:01:40.416] No hints found in the recent session.
[15:01:40.424] Opening exec server for ssh-remote+192.168.0.101
[15:01:40.431] Verified and reusing cached exec server for ssh-remote+192.168.0.101
[15:01:40.431] No hints found in the recent session.
[15:05:28.479] ------




[15:05:28.479] SSH Resolver called for "ssh-remote+192.168.0.101", attempt 2, (Reconnection)
[15:05:28.480] SSH Resolver called for host: 192.168.0.101
[15:05:28.480] Setting up SSH remote "192.168.0.101"
[15:05:28.485] Using commit id "e7fb5e96c0730b9deb70b33781f98e2f35975036" and quality "stable" for server
[15:05:28.485] Extensions to install: 
[15:05:28.491] Install and start server if needed
[15:05:28.495] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 56027 "192.168.0.101" sh
[15:05:28.496] Generated SSH command: 'type "C:\Users\user\AppData\Local\Temp\vscode-linux-multi-line-command-192.168.0.101-731634862.sh" | "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 56027 "192.168.0.101" sh'
[15:05:28.496] Using connect timeout of 17 seconds
[15:05:28.497] Terminal shell path: C:\Windows\System32\cmd.exe
[15:05:28.749] > 
[15:05:28.750] Got some output, clearing connection timeout
[15:05:28.765] > 
[15:07:59.013] > client_loop: send disconnect: Connection reset
[15:08:00.286] "install" terminal command done
[15:08:00.287] Install terminal quit with output:  client_loop: send disconnect: Connection reset

Expected Behavior

When running code on the Jetson Orin Nano, I don't end up with a stuck SSH connection.

Actual Behavior

A popup saying Setting up SSH Host 192.168.0.101: ([details](command:opensshremotes.showDetails "Show details")) Initializing VS Code Server comes up in the bottom right corner of the screen. The SSH connection is disconnected.

Steps To Reproduce
  1. Log into SSH from the PC to the Jetson Orin Nano
  2. I run some Python code
  3. Message above appears
Anything else?

Screenshot:
Image

I am able to connect via RealVNC, even with the VS Code dropping the SSH connection.

Image

However, I cannot initiate an SSH connection from a plain Terminal windows unless I close the VS Code window.

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Remote-SSH: Show Log output and the troubleshooting wiki, especially the generated SSH command and the reconnection attempt. Reproduce the timeout with the Jetson Orin Nano and determine which Remote-SSH connection stage fails; done means the cause is documented and the connection completes reliably or the issue is narrowed to an external environment problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
devtools, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.