This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#IP和端口
10.10.14.210
22
# 用户名与密码
root
DsideaL4r5t6y7u
# RockyLinux在安装界面时,可以选择GUI界面,还是Mini安装无GUI界面,需要动手选择好!
# 在Rocky Linux 9版本中,为了增加安全性,默认情况下禁用SSH root密码登录。这是系统默认设定的规则,我们同样也可以更改它。
允许Rocky Linux 9 root用户通过ssh登录方法:
编辑SSH配置文件
vi /etc/ssh/sshd_config
找到以下内容
#PermitRootLogin prohibit-password
将其修改为
PermitRootLogin yes
保存退出重启SSH服务
systemctl restart sshd
此时root用户可以通过ssh远程登录。
# 临时关闭selinux
setenforce 0
# 永久关闭selinux
vi /etc/sysconfig/selinux
SELINUX=disabled
# 临时关闭防火墙:
systemctl stop firewalld
# 永久关闭防火墙:
systemctl disable firewalld