[BUG] Claude Desktop Code: Auto-Reconnects to Last SSH Host on Startup
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?
Claude Desktop automatically reconnects to the last used SSH host immediately upon application launch, without user interaction.
What Should Happen?
Claude Desktop automatically reconnects to the last used SSH host immediately upon application launch, without user interaction.
Error Messages/Logs
Steps to Reproduce
Connect to an SSH host in Claude Desktop
Close Claude Desktop
Relaunch Claude Desktop
Application immediately auto-connects to the previous SSH host
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
1.11187.1
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
Attempted workaround with CLAUDE_CODE_AUTO_CONNECT_IDE: false environment variable did not resolve the issue (this variable only controls IDE connections, not SSH)
No documented setting exists to disable this auto-reconnect behavior
Behavior is consistent across both platforms
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗