SSH not permitted on LXC container ?

kast0r

New Member
Jun 29, 2022
11
1
1
Hi,

How can I make SSH work ? Any LXC container that I create, SSH is not working by default. Is there a way to make it works without enabling #PermitRoot in the sshd config?

Thanks!
 
I can't tell if ssh is permitted. Don't have any user except root for now.
Run pct enter CTID on the Proxmox host (replace CTID with the number of the container) to login to the container as root. You can then enable root login by editting /etc/ssh/sshd_config or add a (sudo) user for logging in.
 
  • Like
Reactions: nick.kopas
When creating a container, you can also add an ssh key. That way you don't have to manually enter it and edit the sshd
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!