我使用PVE通过lxc容器创建的centos9的CT模板,发现装好之后太纯粹了,连sshd服务都没有,安装一下。
yum update
yum install openssh-server
systemctl status sshd
编辑配置文件:
vi /etc/ssh/sshd_config
找到配置行#PermitRootLogin prohibit-password
修改配置为:
PermitRootLogin yes
重启服务:
systemctl restart sshd
参考资料:https://aplushosting.asia/knowledgebase/30/Centos-9-SSH-Installation.html