Change SSH Port

wget --no-check-certificate https://www.moerats.com/usr/down/sshport.sh

系统要求:支持Debian、Ubuntu、CentOS系统。 运行以下命令:

wget https://www.moerats.com/usr/down/sshport.sh bash sshport.sh 输入端口确认。再打开防火墙端口:

最后重启ssh生效:

service ssh restart

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.