All SSH servers on the internet are heavily targeted for brute-force cracking of passwords. Todos los servidores SSH a través de Internet están fuertemente orientados por fuerza bruta craqueo de contraseñas. Easy passwords can and are often cracked to gain full control over the machine. Fácil contraseñas pueden y suelen ser agrietada para obtener un control total sobre la máquina. Here is a simple hack to thwart most of such hacking attempts. Aquí es un simple hack para frustrar la mayoría de esos intentos de hacking.

Change the default port of ssh to a non-standard port greater than 1024. Cambiar el puerto por defecto de ssh a un puerto no estándar superior a 1024. Most hacking scripts target port 22, which is the default ssh port, for brute-force attacks. La mayoría de hacking scripts objetivo el puerto 22, que es el puerto por defecto ssh, por fuerza bruta ataques.

Open file /etc/ssh/sshd_config and add / change the Port line as follows: Abrir el archivo / etc / ssh / sshd_config y añadir / cambiar la línea Puerto de la siguiente manera:
Port 1234 Port 1234

Replace 1234 with an unique number greater than 1024. Sustituya 1234 con un único número superior a 1024. My server used to be subjected to thousands of hacking attempts daily. Mi servidor utilizado para ser sometido a miles de intentos de hacking a diario. After the changes it has dropped almost to zero. Después de los cambios que ha disminuido casi a cero. Sometimes a simple solution is all it takes to solve your complex problem. A veces una solución simple es todo lo que se necesita para resolver su problema complejo.