解决pve中lxc容器无法通过ssh连接的问题
22
1.进入容器命令行检查ssh是否开启
sudo systemctl status ssh
如果未运行,启动它
sudo systemctl start ssh
2.修改ssh配置使其支持远程登录
nano /etc/ssh/sshd_config.d/edit.conf
并添加以下内容
PasswordAuthentication yes
PermitRootLogin yes
保存即可
3.重启ssh
sudo systemctl restart ssh
解决pve中lxc容器无法通过ssh连接的问题
https://blog.jiexuan.icu/archives/jie-jue-pvezhong-lxcrong-qi-wu-fa-tong-guo-sshlian-jie-de-wen-ti