[Bug]: Error: Unsupported remote platform on Linux x86_64 (Ubuntu 20.04)
Operating system
Linux
Orca version
No response
Details
Description
VS Code Remote SSH fails to connect with the following error despite the remote host being Linux x86_64, which is listed as supported platform.
Error invoking remote method 'ssh:connect': Error: Unsupported remote platform. Orca relay supports: linux-x64, linux-arm64, darwin-x64, darwin-arm64, win32-x64, win32-arm64
Environment
Remote host
- OS: Ubuntu 20.04
- Kernel: 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025
- Architecture: x86_64
- Hostname: pc-server05
Client
- OS: Windows (VS Code desktop)
- Extension: Remote - SSH
Steps to Reproduce
- Open VS Code on client machine
- Connect to remote host via Remote - SSH
- Error appears immediately during connection handshake
Expected Behavior
VS Code Remote SSH connects successfully — linux-x64 is explicitly listed as a supported platform.
Actual Behavior
Connection refused with Error invoking remote method 'ssh:connect': Error: Unsupported remote platform. Orca relay supports: linux-x64, linux-arm64, darwin-x64, darwin-arm64, win32-x64, win32-arm64.
This looks fixed on current main.
Merged PR #7965, commit e3f0b99f4abb80a4ae9e930786713d49d2be0baf, changed the SSH remote-platform probe in src/main/ssh/ssh-remote-platform-detection.ts so it no longer trusts the first two whitespace tokens of the whole stdout blob. The probe now tags its own output and scans line by line, which covers the exact failure mode here: shell-startup banner or echoed-command noise hiding a supported Linux x86_64 result.
I verified the current head locally from origin/main and both focused suites passed:
pnpm exec vitest run --config config/vitest.config.ts src/main/ssh/ssh-remote-platform-detection.test.tspnpm exec vitest run --config config/vitest.config.ts src/main/ssh/relay-protocol.test.ts
The current detection tests cover tagged noisy-output handling in this code path, including preamble-contaminated platform probe output. If you can still reproduce this on a current build after #7965, please post the fresh logs and the exact remote shell startup output. Otherwise this issue looks ready to close.
I updated from 1.4.135 to 1.4.137. The error changed, but still unable to connect.
Error invoking remote method 'ssh:connect': Error: Remote home is not a valid path: .bashrc loaded /home/xxx.
Set ssh target with label, host, username and port correctly, and no place for remote home setting.
Thanks for updating and reporting back. The original Unsupported remote platform error was fixed by #7965 (the platform probe now tags its output and scans line-by-line), which is why that specific error is gone on 1.4.137.
The new failure you're hitting is a separate but closely related issue:
Remote home is not a valid path: .bashrc loaded /home/xxx
Your shell startup file is printing a banner (.bashrc loaded) to stdout, and the remote-home resolution step (readRemoteHomeCommand -> normalizeRemoteHome in src/main/ssh/ssh-relay-deploy.ts) doesn't yet strip that noise the way the platform probe now does — so the banner gets prepended to /home/xxx and fails validation. This is a real bug on our side; the same tagged / line-scanned parsing that #7965 added to the platform probe needs to be applied to the home-path probe.
As an immediate workaround, you can guard the banner output in your ~/.bashrc so it only prints for interactive shells, e.g.:
case $- in *i*) echo '.bashrc loaded';; esac
Leaving this open and flagging it for a fix. There's no need for more info from you, but if you can confirm the workaround above lets you connect, that would help verify the diagnosis.
Attempted repro — cannot_repro (on available Linux host)
Tried
- SSH to lab host
openclaw(Ubuntu 24.04 x86_64, not 20.04). uname -sm→Linux x86_64.parseUnameToRelayPlatform('Linux', 'x86_64')maps cleanly tolinux-x64(supported).- Detection command used by Orca:
printf '\\n%s ' '__ORCA_REMOTE_PLATFORM__'; uname -sm— standard Ubuntu should emit a parseable marker line.
Result
Could not reproduce “Unsupported remote platform” for a normal Linux x86_64 uname probe. The reported host is Ubuntu 20.04 (kernel 5.4); this environment has no Ubuntu 20.04 target. Possible causes unique to that host: non-standard shell/MOTD noise swallowing the marker, restricted uname, or non-Linux uname string — need the raw SSH probe output from pc-server05 to go further.
The platform probe handling is fixed by merged #12209. It now preserves failed/unparsed Linux probe outcomes and reserves “Unsupported remote platform” for a parsed platform the relay does not support. The remaining login-banner noise mentioned in this thread is a separate remote-home parsing issue, so I am leaving this issue open for that unresolved facet.
Fixed on main by #26617 (landed with #26847). SSH commands now wrap their output in per-call markers, so a .bashrc that prints a banner no longer ends up glued to the home path. It ships in the next release; reopen if you still hit it after that.