pct-enter
TLDR
Enter container shell
$ pct enter [VMID]
Enter as specific user$ pct enter [VMID] --user [root]
SYNOPSIS
pct enter vmid [options]
DESCRIPTION
pct enter opens a shell session inside a Proxmox LXC container. It provides direct console access without SSH, similar to docker exec.
Part of the Proxmox VE container management tools.
PARAMETERS
vmid
Container ID.--user name
User to login as.
EXAMPLE
$ # Enter container 100
pct enter 100
# Enter as root
pct enter 100 --user root
# Run single command
pct exec 100 -- ls -la
pct enter 100
# Enter as root
pct enter 100 --user root
# Run single command
pct exec 100 -- ls -la
RELATED COMMANDS
$ pct enter - Interactive shell
pct exec - Run single command
pct console - Console access
pct exec - Run single command
pct console - Console access
CAVEATS
Container must be running. Requires Proxmox VE. Use pct exec for non-interactive commands.
HISTORY
pct commands are part of Proxmox VE, developed by Proxmox Server Solutions GmbH for managing LXC containers in their virtualization platform.
SEE ALSO
pct(1), pct-list(1), lxc-attach(1)


