SSH修改端口防暴力破解

1
2
3
4
# passwd  //修改密码
# ssh -V
# vim /etc/ssh/sshd_config
# systemctl restart sshd

注意同时开启云服务器防火墙端口

1
2
3
4
5
6
7
8
9
# If you want to change the port on a SELinux system, you have to tell
# SELinux about this change.
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
#
#Port 22
Port 10086
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

也可使用禁止密码登陆,只能使用密钥登陆

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :