在安装centos9时,默认时关闭root用户的ssh登录功能,开启密钥认证模式
如果想使用ssh登录,在/etc/ssh/sshd_config文件中,修改PermitRootLogin 的值从prohibit-password 修改为yes,重启
systemctl restart sshd
在防火墙中,添加sshd的服务
firewall-cmd --add-service=ssh --permanent
firewall-cmd --reload
在安装centos9时,默认时关闭root用户的ssh登录功能,开启密钥认证模式
如果想使用ssh登录,在/etc/ssh/sshd_config文件中,修改PermitRootLogin 的值从prohibit-password 修改为yes,重启
systemctl restart sshd
在防火墙中,添加sshd的服务
firewall-cmd --add-service=ssh --permanent
firewall-cmd --reload
1106

被折叠的 条评论
为什么被折叠?
