1.设置永久关闭防火墙
vim /etc/selinux/config
#文件中的SELINUX=enforcing
#修改为
SELINUX=disabled
2.修改SSH配置文件
vim /etc/ssh/sshd_config
UseDNS no
PubkeyAuthentication yes
PasswordAuthentication yes
PermitRootLogin yes
3.重启ssh
service sshd restart
1.设置永久关闭防火墙
vim /etc/selinux/config
#文件中的SELINUX=enforcing
#修改为
SELINUX=disabled
2.修改SSH配置文件
vim /etc/ssh/sshd_config
UseDNS no
PubkeyAuthentication yes
PasswordAuthentication yes
PermitRootLogin yes
3.重启ssh
service sshd restart
暂无评论
2023-11-13
2023-11-13
2023-11-05
2023-11-02
2023-11-02
2023-11-02
2023-11-02
2023-11-02
2023-11-02
2023-11-02
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-18
2024-05-18
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17