[SOLVED] Root ssh link fail to LXC Container

newjeans

New Member
Jul 24, 2022
2
0
1
Environment: PVE 7.2,
LXC container: debian 11 (ip 192.168.0.182)
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@192.168.0.182
The authenticity of host '192.168.0.182 (192.168.0.182)' 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 '192.168.0.182' (ECDSA) to the list of known hosts.
root@192.168.0.182's password:


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

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

root@pve:~# ssh ryan@192.168.0.182
ryan@192.168.0.182'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 192.168.0.195
$ 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:

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!