Skip to content

docs: add Proxmox unprivileged LXC troubleshooting section#94

Open
otavio wants to merge 1 commit into
masterfrom
docs/proxmox-lxc-troubleshooting
Open

docs: add Proxmox unprivileged LXC troubleshooting section#94
otavio wants to merge 1 commit into
masterfrom
docs/proxmox-lxc-troubleshooting

Conversation

@otavio

@otavio otavio commented Jun 9, 2026

Copy link
Copy Markdown
Member

What

Adds a troubleshooting section to the self-hosted docs for the common case of
the ShellHub agent running inside an unprivileged Proxmox LXC container, where
SSH sessions disconnect immediately after authentication.

Why

Recurring user reports (see shellhub-io/shellhub#4634). The failure looks like a
ShellHub bug but is rooted in how unprivileged LXC restricts PTY allocation and
host-namespace access. The guidance differs by agent type, which wasn't
documented anywhere.

Changes

  • self-hosted/troubleshooting.md: new "SSH session disconnects immediately
    in a Proxmox unprivileged LXC" entry, split into:
    • Standalone agent — remove stale devpts//dev/shm entries from the
      container /etc/fstab, verify /dev/ptmx permissions, and raise
      lxc.pty.max if needed.
    • Docker agentfeatures: nesting=1,keyctl=1 to run Docker-in-LXC, and
      an honest recommendation to use a privileged container or a VM for the
      host-namespace entry an unprivileged container cannot grant.
    • A note that the ns/time line is cosmetic for the standalone case, and a
      caution that a privileged LXC is not a security boundary.

The companion agent fixes are in shellhub-io/shellhub#6458.

Document why SSH sessions disconnect immediately when the agent runs in an
unprivileged Proxmox LXC container, split by agent type: devpts/fstab and
PTY-limit fixes for the standalone agent, and the nesting/keyctl features
plus the privileged-LXC-or-VM recommendation for the Docker agent.

Ref: shellhub-io/shellhub#4634
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jun 9, 2026 12:55pm
docs-ng-wm9d Ready Ready Preview, Comment Jun 9, 2026 12:55pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant