[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente | ||
es:howtos:security:ssh [2019/03/18 01:50 (UTC)] – [Improving OpenSSH security] antares_alf | es:howtos:security:ssh [2019/03/24 16:12 (UTC)] – [Alternate method of Changing the SSH default port without changing] antares_alf | ||
---|---|---|---|
Línea 10: | Línea 10: | ||
Necesitará saber cómo usar un editor de texto para poder seguir este HOWTO. Si eres un principiante completo, prueba '' | Necesitará saber cómo usar un editor de texto para poder seguir este HOWTO. Si eres un principiante completo, prueba '' | ||
- | ===== The SSH configuration files and finding more information | + | ===== Los archivos de configuración de SSH y encontrar más información |
- | The [[http:// | + | Los archivos de configuración de [[http:// |
- | The [[http:// | + | La documentación de [[http:// |
+ | ===== Modificando el archivo sshd_config ===== | ||
- | ===== Modifying the sshd_config file ===== | + | La primera regla, antes de modificar un archivo de configuración importante es hacer una copia de respaldo. Por ejemplo: |
+ | < | ||
+ | # cp -v / | ||
+ | </ | ||
- | The first rule, before you modify an important configuration file is to make a backup copy of it. For instance: | + | El comando mostrado arriba hace una copia del archivo '' |
- | '' | + | < |
+ | # cp -v / | ||
+ | </ | ||
- | The command shown above will make a copy of the '' | + | Tenga en cuenta que esta es una sugerencia, por supuesto, y se recomienda encarecidamente |
- | '' | + | Ahora, edite el archivo |
- | Please note that this is a suggestion, of course, and system administrators that have to manage large installation, with hundreds of servers, are strongly advised to investigate better solutions, such as [[http:// | + | ===== Cambiar el puerto predeterminado de SSH ===== |
+ | Por defecto, OpenSSH escucha en el puerto '' | ||
- | Now, edit the '' | + | Si desea cambiar el puerto, busque la opción '' |
- | ===== Change the SSH default port ===== | + | Por ejemplo: |
- | + | ||
- | By default, OpenSSH listens on port 22. It is sometimes advised to change this default port to something different, such as '' | + | |
- | + | ||
- | If you'd like to change the port, search for the '' | + | |
- | + | ||
- | For instance: | + | |
'' | '' | ||
- | Can be changed to: | + | Puede cambiarse por: |
'' | '' | ||
+ | ===== Método alternativo para cambiar el puerto predeterminado de SSH sin cambiarlo ===== | ||
+ | Esta sugerencia es completamente sacada de otro sitio. [[http:// | ||
+ | La idea aquí es agregar una llamada a este script en '' | ||
- | ===== Alternate method of Changing the SSH default port without changing | + | Para usar el ejemplo de descarga en la parte inferior, cámbielo |
- | + | Agregue este ejemplo a continuación a '' | |
- | This suggestion is completely lifted from another site [[http:// | + | |
- | The idea here is add a call to this script in rc.local so it will run at start up. | + | |
- | + | ||
- | To use Download sample at the bottom change as you like and save it in / | + | |
- | Add this sample below to / | + | |
- | #add ssh_hide | + | #Agregar |
if [ -x / | if [ -x / | ||
/ | / |