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
解决linux 系统ssh 无法远程,xshell连接慢
阅读 37
2023-09-28
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
相关推荐
精彩评论(0)