Diferencia entre revisiones de «Ssh config»
Ir a la navegación
Ir a la búsqueda
(No se muestran 7 ediciones intermedias del mismo usuario) | |||
Línea 2: | Línea 2: | ||
== CONFIGURAR SSH == | == CONFIGURAR SSH == | ||
1) EDITAMOS EL ARCHIVO | 1) EDITAMOS EL ARCHIVO. | ||
sudo nano /etc/ssh/sshd_config | sudo nano /etc/ssh/sshd_config | ||
2) AGREGAMOS O EDITAMOS LOS PARAMETROS. | |||
Port 10022 | |||
PermitRootLogin no | |||
Port 10022 | AllowUsers oscar | ||
ChallengeResponseAuthentication no | |||
PermitRootLogin no | UsePAM yes | ||
X11Forwarding yes | |||
AllowUsers oscar | PrintMotd no | ||
AcceptEnv LANG LC_* | |||
ChallengeResponseAuthentication no | Subsystem sftp /usr/lib/openssh/sftp-server | ||
PasswordAuthentication no | |||
UsePAM yes | LoginGraceTime 30 | ||
MaxAuthTries 3 | |||
X11Forwarding yes | MaxStartups 3 | ||
PrintMotd no | |||
AcceptEnv LANG LC_* | |||
Subsystem sftp /usr/lib/openssh/sftp-server | |||
LoginGraceTime 30 | |||
MaxAuthTries 3 | |||
MaxStartups 3 | |||
GUARDAMOS LOS CAMBIOS PRESIONANDO CTRL + X. | GUARDAMOS LOS CAMBIOS PRESIONANDO CTRL + X. | ||
3) | 3) REINICIAMOS EL SERVICIO DE SSH. | ||
sudo systemctl restart ssh.service | sudo systemctl restart ssh.service |
Revisión actual del 01:57 12 feb 2021
CONFIGURAR SSH
1) EDITAMOS EL ARCHIVO.
sudo nano /etc/ssh/sshd_config
2) AGREGAMOS O EDITAMOS LOS PARAMETROS.
Port 10022 PermitRootLogin no AllowUsers oscar ChallengeResponseAuthentication no UsePAM yes X11Forwarding yes PrintMotd no AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server PasswordAuthentication no LoginGraceTime 30 MaxAuthTries 3 MaxStartups 3
GUARDAMOS LOS CAMBIOS PRESIONANDO CTRL + X.
3) REINICIAMOS EL SERVICIO DE SSH.
sudo systemctl restart ssh.service