[BUG] Remote SSH connection fails on root VPS after client update 1.1.7714
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?
Version: Claude Code Mac app 1.1.7714 (2026-03-19)
OS: macOS (client) + Ubuntu VPS (remote, running as root)
Bug: After updating to 1.1.7714, remote SSH connections disconnect
immediately when sending a message.
Root cause: The new client sends --allow-dangerously-skip-permissions
to ccd-cli on the remote server, but ccd-cli refuses this flag when
running as root:
"–dangerously-skip-permissions cannot be used with root/sudo privileges"
This causes ccd-cli to exit with code 1 on every message.
Workaround: Replace ~/.claude/remote/ccd-cli with a wrapper script
that filters out --allow-dangerously-skip-permissions before calling
the real binary.
What Should Happen?
The client should not send this flag, or ccd-cli
should handle it gracefully when running as root.
Error Messages/Logs
Error Messages/Logs
From ~/.claude/remote/remote-server.log on VPS:
Process exited with code 1
Read 93 bytes from stderr
Direct reproduction on VPS:
$ ~/.claude/remote/ccd-cli --output-format stream-json --verbose \
--input-format stream-json --model claude-sonnet-4-6 \
--permission-prompt-tool stdio --permission-mode acceptEdits \
--allow-dangerously-skip-permissions --include-partial-messages
Error: --dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons
Steps to Reproduce
- Set up a VPS running as root (Ubuntu)
- Configure a remote SSH connection in Claude Code Mac app
- Update Mac app to version 1.1.7714
- Connect to the remote VPS via the app
- Send any message in the remote session
→ Connection immediately drops (grey dot, "disconnected")
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Mac app: 1.1.7714 (2026-03-19) ccd-cli on remote VPS: 2.1.78
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗