Parece que foi um problema de firewall. Para se conectar através do ssh, você deve permitir que launchd
, não sshd
, aceite conexões de entrada.
Aqui está a configuração, eu tenho quatro máquinas:
De A eu posso conectar a C e D . De C e D eu posso conectar a B . Mas quando eu tento me conectar a B de A eu recebo as seguintes mensagens:
Em A (com -vvv
opção):
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 2a01:********* [2a01:*********] port22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/<user>/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/<user>/.ssh/id_rsa type 1
debug1: identity file /home/<user>/.ssh/id_rsa-cert type -1
debug1: identity file /home/<user>/.ssh/id_dsa type -1
debug1: identity file /home/<user>/.ssh/id_dsa-cert type -1
debug1: identity file /home/<user>/.ssh/id_ecdsa type -1
debug1: identity file /home/<user>/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/<user>/.ssh/id_ed25519 type -1
ebug1: identity file /home/<user>/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6
ssh_exchange_identification: Connection closed by remote host
Em B :
sshd[7215]: error: BSM audit: getaddrinfo failed for UNKNOWN: nodename nor servname provided, or not known
sshd[7215]: Could not write ident string to UNKNOWN
com.apple.xpc.launchd[1] (com.openssh.sshd.1681EC73-750F-45A5-998D-B54A0BBE893E[7215]): Service exited with abnormal code: 255
O que está acontecendo?