linux:safeconfigssh
Differences
This shows you the differences between two versions of the page.
| Previous revision | |||
| — | linux:safeconfigssh [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Configuracion segura de ssh ====== | ||
| + | |||
| + | |||
| + | Sobre este particular seguro que se han escrito miles y miles de páginas, pero yo os recomiendo esta configuración: | ||
| + | |||
| + | |||
| + | <code config> | ||
| + | PermitRootLogin no < | ||
| + | |||
| + | PermitEmptyPasswords no <--- ¿hace falta decir porqué??? | ||
| + | |||
| + | MaxAuthTries 3 <-- a los tres intentos de conexión, fuera | ||
| + | |||
| + | # Para hacer la conexión más estable | ||
| + | TCPKeepAlive yes | ||
| + | ClientAliveCountMax 30 | ||
| + | ClientAliveInterval 200 | ||
| + | |||
| + | # pon un banner con un mensaje amenazador | ||
| + | Banner / | ||
| + | |||
| + | </ | ||
| + | |||
| + | Para saber más: | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | |||
