Press "Enter" to skip to content

centos9安装sshd服务

我使用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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注