方法1:在PVE主机console输入以下,进入容器ssh
lxc-attach --name 101 #101为容器号码
方法2:直接在容器的console输入
nano /etc/ssh/sshd_config
修改PermitRootLogin without-password 为 PermitRootLogin yes

方法1:在PVE主机console输入以下,进入容器ssh
lxc-attach --name 101 #101为容器号码
方法2:直接在容器的console输入
nano /etc/ssh/sshd_config
修改PermitRootLogin without-password 为 PermitRootLogin yes

评论区