Linux shell script to change you ssh port

Our vps’s ssh port always scaned by some bad gay and Fail2ban is not enought.
You can change you default port for the security.
But there is many new gay doesn’t know how to change it.
We provide you a one key shell script to change you ssh default now.

 

Fill the command in a shell like changeport.sh, and run it.
After this, don’t forget to restart you ssh service.

 

This shell script if from OneinStack.

The last thing is don’t forget to add you new port to the firewall to allow it.

未经允许不得转载:VPS啦 » Linux shell script to change you ssh port

赞 (0) 打赏

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏