Bash script to automate enabling SSH access inside Proxmox LXC containers.
Proxmox Container SSH Enabler is a simple Bash script that automates the process of enabling SSH in Proxmox LXC containers.
It removes the need for manual configuration steps and ensures that the container is properly set up for remote SSH access.
- ✅ Enables TTY and Nesting for the container
- 🧩 Installs and configures OpenSSH Server inside the LXC
- 🔐 Allows you to optionally add firewall rules for enhanced security
- ⚡ Fully automated — no manual file editing required
Before running the script, customize the container variables:
container_id=100 # Replace with your container's ID
container_ip=192.168.1.10 # Replace with your container's IPThen, download and execute the script:
wget https://raw.githubusercontent.com/FilipooSVK/ssh_activation_ct/main/activate_ssh.sh
chmod +x activate_ssh.sh
./activate_ssh.sh- ✅ Enable SSH access in the selected container
- ⚙️ Adjust container configuration (TTY, Nesting)
- 🔥 Optionally create firewall rules
- 🖥️ A running Proxmox VE host
- 🧩 Existing LXC container
- 🔑 Sufficient permissions to modify and restart containers
This project is licensed under the MIT License.
🧠 Created with ❤️ by FilipooSVK