Diferencia entre revisiones de «Ssh config»
Ir a la navegación
Ir a la búsqueda
Línea 7: | Línea 7: | ||
2) | 2) AGREGAMOS O EDITAMOS LOS PARAMETROS. | ||
PermitRootLogin no | Port 10022 | ||
PermitRootLogin no | |||
AllowUsers oscar | AllowUsers oscar | ||
ChallengeResponseAuthentication no | |||
ChallengeResponseAuthentication no | UsePAM yes | ||
X11Forwarding yes | |||
UsePAM yes | PrintMotd no | ||
AcceptEnv LANG LC_* | |||
X11Forwarding yes | Subsystem sftp /usr/lib/openssh/sftp-server | ||
LoginGraceTime 30 | |||
PrintMotd no | MaxAuthTries 3 | ||
MaxStartups 3 | |||
AcceptEnv LANG LC_* | |||
Subsystem sftp /usr/lib/openssh/sftp-server | |||
LoginGraceTime 30 | |||
MaxAuthTries 3 | |||
MaxStartups 3 | |||
Revisión del 01:43 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 LoginGraceTime 30 MaxAuthTries 3 MaxStartups 3
GUARDAMOS LOS CAMBIOS PRESIONANDO CTRL + X.
3) REINICIAMOSEL SERVICIO DE SSH.
sudo systemctl restart ssh.service