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.有時,一個簡單的解決辦法是所有需解決您複雜的問題。