All SSH servers on the internet are heavily targeted for brute-force cracking of passwords.所有的SSH服务器在互联网上大量有针对性的为强权的武力打击的密码。 Easy passwords can and are often cracked to gain full control over the machine.可以很容易的密码,并且往往破获要获得完全的控制权,机器。 Here is a simple hack to thwart most of such hacking attempts.这里是一个简单的入侵阻止大多数这样的黑客企图。

Change the default port of ssh to a non-standard port greater than 1024.改变默认端口的ssh到的是非标准的端口大于1024 。 Most hacking scripts target port 22, which is the default ssh port, for brute-force attacks.最黑客脚本的目标端口22 ,这是默认的SSH端口,为强权的武力攻击。

Open file /etc/ssh/sshd_config and add / change the Port line as follows:打开文件的/ etc / ssh / sshd_config和新增/变更港口路线如下:
Port 1234 港口1234

Replace 1234 with an unique number greater than 1024.取代1234年与一个独一无二的号码,大于1024 。 My server used to be subjected to thousands of hacking attempts daily.我的服务器用来受到数以千计的黑客企图每日。 After the changes it has dropped almost to zero.后的变化,它已降至几乎为零。 Sometimes a simple solution is all it takes to solve your complex problem.有时,一个简单的解决办法是所有需解决您复杂的问题。