Diferencia entre revisiones de «Ssh config»

De Base de conocimiento
Ir a la navegación Ir a la búsqueda
(Página creada con «CONFIGURAR SSH 1) EDITAMOS EL ARCHIVO sudo nano /etc/ssh/sshd_config 2) Agregamos o editamos el parametro Port 10022 PermitRootLogin no AllowUsers oscar Challenge...»)
 
 
(No se muestran 8 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
CONFIGURAR SSH


1) EDITAMOS EL ARCHIVO
== CONFIGURAR SSH ==
 
1) EDITAMOS EL ARCHIVO.


   sudo nano /etc/ssh/sshd_config
   sudo nano /etc/ssh/sshd_config


2) Agregamos o editamos el parametro
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


  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.
GUARDAMOS LOS CAMBIOS PRESIONANDO CTRL + X.


3) REINICIAMOSEL SERVICIO DE SSH.
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