Preflight Checklist
What's Wrong?
When using the .ssh/config file for hosts with a non-standard port from the default port 22 on Windows, the SSH connection fails because the port specification in the config file is not honoring the port directive.
Further any include in the config referencing an alternate ssh config is also not honored. This is a variant of #26809 which is currently closed, not planned.
However, this is preventing a set of users from accessing environments set up using a non-standard port. This appears to coincide with the migration away from OpenSSH to SSH2
What Should Happen?
Claude Desktop SSH connections should respect the config settings specified for host entries in the .ssh/config file
Error Messages/Logs
Connection attempt times out
Steps to Reproduce
- Specify an entry in the .ssh/config file with a non-standard port for SSH
Host myServer HostName myserver.example.com User myUser Port 2222 IdentityFile ~/.ssh/mykey.pem
-
Specify the hostname in the Claude Desktop Code SSH connection
-
Connection will fail
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
1.24012.1
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
No response
Preflight Checklist
What's Wrong?
When using the .ssh/config file for hosts with a non-standard port from the default port 22 on Windows, the SSH connection fails because the port specification in the config file is not honoring the port directive.
Further any include in the config referencing an alternate ssh config is also not honored. This is a variant of #26809 which is currently closed, not planned.
However, this is preventing a set of users from accessing environments set up using a non-standard port. This appears to coincide with the migration away from OpenSSH to SSH2
What Should Happen?
Claude Desktop SSH connections should respect the config settings specified for host entries in the .ssh/config file
Error Messages/Logs
Connection attempt times outSteps to Reproduce
Host myServer HostName myserver.example.com User myUser Port 2222 IdentityFile ~/.ssh/mykey.pemSpecify the hostname in the Claude Desktop Code SSH connection
Connection will fail
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
1.24012.1
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
No response