— Homelab, Proxmox — 1 min read
While setting up a new Ubuntu 22.04 container in Proxmox, I needed to enable SSH access using the root user and password. By default, LXC containers created from Ubuntu templates come with password login disabled for root via SSH. Here's how to install the container and make it SSH-accessible securely.
ubuntu-22.04-standard_*.tar.zstmy-ubuntu-ct1pct start 1002pct enter 100(Replace 100 with your container ID)
Inside the container:
1apt update && apt install -y openssh-serverMake sure the SSH service is running:
1systemctl enable ssh2systemctl start sshEdit SSH config:
1nano /etc/ssh/sshd_configMake sure these lines are set:
1PermitRootLogin yes2PasswordAuthentication yesSave and restart SSH:
1systemctl restart sshExit the container:
1exitGet container's IP:
1pct exec 100 ip aFrom your Proxmox host or laptop:
1ssh root@<container-ip>Enter the password you set during container creation.
Ubuntu containers on Proxmox are lightweight, fast to boot, and ideal for development and testing. But for secure SSH access, especially using root login, a few default settings must be changed. Once configured properly, it becomes a clean and scriptable environment to build on.