[SOLVED] Root ssh link fail to LXC Container


New Member
Jul 24, 2022
Environment: PVE 7.2,
LXC container: debian 11 (ip
root ssh login in PVE node , successful.

issue: root ssh login in LXC container / debian 11 failed "permission denied (publickey,password)"
double checked, password for root is right.

try to fix by modify sshd_config
vim /etc/ssh/sshd_config
PermitRootLogin yes
and restart ssh service service sshd restart

root ssh login in failed again with "permission denied (publickey,password)"
root@pve:~# ssh root@
The authenticity of host ' (' can't be established.
ECDSA key fingerprint is SHA256:LTXBdieCg31jvq7VBZni76Ib5/8XH2l5QSC7rL/GIc8.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '' (ECDSA) to the list of known hosts.
root@'s password:

Permission denied, please try again.
root@'s password:
Permission denied, please try again.
root@'s password:
root@ Permission denied (publickey,password).

ssh login in with normal user, successfully !!! amazing !!! is the new feature for PVE 7.2?

root@pve:~# ssh ryan@
ryan@'s password:
Linux Debian 5.15.39-1-pve #1 SMP PVE 5.15.39-1 (Wed, 22 Jun 2022 17:22:00 +0200) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jul 24 07:48:57 2022 from
$ ls /
bin boot dev etc home lib lib32 lib64 libx32 lost+found media mnt opt proc root run sbin srv sys tmp usr var
Last edited:


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 your own in 60 seconds.

Buy now!