[BUG] ssh ProxyCommand not working on claude desktop code tab on windows, ProxyJump not supported on windows or Mac

Resolved 💬 7 comments Opened Mar 30, 2026 by pie-rs Closed Jun 3, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Windows 11 latest, 1password.
Mac Tahoe latest, 1password.

On Windows the logs should Claude Desktop is trying to spawn via sh and thus fails.

ProxyCommand error: spawn sh ENOENT — Claude Code is trying to run ProxyCommand via sh (Unix shell) which doesn't exist on Windows. It falls back to direct connection after this fails.

This fails during handshake.

(ProxyJump is not supported on either platform which Claude Desktop highlights - ideally it should be as it's the more modern solution when using bastions.)

What Should Happen?

Ideally, both Windows and Mac should support ProxyCommand.

Better still, add support for ProxyJump, which is the more modern way of connecting via a bastion.

Error Messages/Logs

2026-03-30 15:46:44 [info] [SSH2Connection] Resolved agent-host-claude -> dev@10.10.xx.xx:xx (identitiesOnly) (proxyCommand) (identityFiles: 1)
2026-03-30 15:46:44 [info] [SSH2Connection] Spawning ProxyCommand: ssh.exe -W 10.10.xx.xx:xx servername
2026-03-30 15:46:44 [error] [SSH2Connection] ProxyCommand error: spawn sh ENOENT

Steps to Reproduce

create an ssh connection in code tab of desktop

add a proxy to ~/.ssh/config

Host agent-host-claude
Hostname 10.10.x.x
User blah
ProxyCommand ssh.exe -W 10.10.xxxx:%p bastionservername
IdentityFile ~/.ssh/keyfile
IdentitiesOnly yes

does not connect

remove the proxy command and it will.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude 1.1.9493 (b58a0b) 2026-03-29T03:33:07.000Z (desktop)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Apologies if this is in the wrong repo but there doesnt appear to be a repo for desktop?

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗