Diferencia entre revisiones de «Ssh config»

De Base de conocimiento
Ir a la navegación Ir a la búsqueda
Línea 8: Línea 8:


2) AGREGAMOS O EDITAMOS LOS PARAMETROS.
2) AGREGAMOS O EDITAMOS LOS PARAMETROS.


   Port 10022
   Port 10022

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