systemadmin.es » Redes » ssh_exchange_identification: Connection closed by remote host

ssh_exchange_identification: Connection closed by remote host

Al intentar acceder por ssh a un host nos podemos encontrar con el siguiente error:

$ ssh -l jordi 192.168.1.1
ssh_exchange_identification: Connection closed by remote host

Delante de este error deberemos revisar el fichero /etc/hosts.deny, ya que es muy posible que los TCP warppers esten bloqueando la conexión. Por ejemplo, en un ArchLinux por defecto nos encontraremos lo siguiente:

$ cat /etc/hosts.deny
#
# /etc/hosts.deny
#

ALL: ALL: DENY

# End of file

Simplemente deberemos eliminar la línea que deniega todas las conexiones para todos los servicios o bien, permitir sólo los hosts que nos interesan mediante el fichero /etc/hosts.allow

sshd: 192.168.1.1: ALLOW

Relacionados

Imprimir Imprimir

One comment to “ssh_exchange_identification: Connection closed by remote host”

  1. Mi sistema HPUX 11.11, un L3000, no tiene configurado el /etc/hosts.deny
    Ya actualize al última versión tanto el SSH, OPENSSL parches y nada, tienes alguna sugerencia?

    Gracias por tu ayuda.

    Saludos.
    Israel Lozano

Deja un comentario:

XHTML - Tags permitidos:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>