All SSH servers on the internet are heavily targeted for brute-force cracking of passwords. Tutti i server SSH su internet sono fortemente mirati per forza bruta-cracking delle password. Easy passwords can and are often cracked to gain full control over the machine. Facile password può e spesso sono di cracking per ottenere il totale controllo della macchina. Here is a simple hack to thwart most of such hacking attempts. Qui è un semplice trucco per contrastare la maggior parte di tali tentativi di hacking.

Change the default port of ssh to a non-standard port greater than 1024. Modificare la porta di default di ssh per una porta non-standard maggiore di 1024. Most hacking scripts target port 22, which is the default ssh port, for brute-force attacks. La maggior parte di hacking script di destinazione la porta 22, che è la porta di default di ssh, per forza bruta-attacchi.

Open file /etc/ssh/sshd_config and add / change the Port line as follows: Apri il file / etc / ssh / sshd_config e aggiungere / modificare la linea di porta come segue:
Port 1234 Porta 1234

Replace 1234 with an unique number greater than 1024. Sostituire il 1234 con un unico numero maggiore di 1024. My server used to be subjected to thousands of hacking attempts daily. Il mio server utilizzati per essere sottoposto a migliaia di tentativi di hacking al giorno. After the changes it has dropped almost to zero. Dopo le modifiche che è scesa quasi a zero. Sometimes a simple solution is all it takes to solve your complex problem. Talvolta una semplice soluzione è tanto necessario per risolvere il tuo problema complesso.