remote 'mac' recusa a conexão ssh do computador local

1

Esse problema me confunde muito. O que eu fiz:

  1. abra remote encaminhamento de porta do roteador.

: quando digito ssh *@*** no computador local , o log do roteador remote mostra

[LAN access from remote] from *.*.*.*:37482 to 192.168.0.16:22

*.*.*.* é local ip do computador

  1. abra remote login no controle remoto Mac

Mas não consigo fazer o ssh no remote mac computer.

No computador local , mostra

OpenSSH_6.8p1, OpenSSL 1.0.2a 19 Mar 2015
debug1: Connecting to '*.*.*.*' [remote mac] port 22.
debug1: Connection established.
debug1: identity file /home/AAA/.ssh/id_rsa type 1
debug1: identity file /home/AAA/.ssh/id_rsa-cert type -1
debug1: identity file /home/AAA/.ssh/id_dsa type -1
debug1: identity file /home/AAA/.ssh/id_dsa-cert type -1
debug1: identity file /home/AAA/.ssh/id_ecdsa type -1
debug1: identity file /home/AAA/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/AAA/.ssh/id_ed25519 type -1
debug1: identity file /home/AAA/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.8
ssh_exchange_identification: Connection closed by remote host

Enquanto no computador remote mac, eu ligo o log do sistema. mostra

Jan 15 19:10:57 AAA com.apple.xpc.launchd[1] (com.openssh.sshd.BBBBB-BBBB): Service instances do not support events yet.
Jan 15 19:10:57 AAA.local sshd[3539]: error: BSM audit: getaddrinfo failed for UNKNOWN: nodename nor servname provided, or not known
Jan 15 19:10:57 AAA.local sshd[3539]: Could not write ident string to UNKNOWN
Jan 15 19:10:57 AAA com.apple.xpc.launchd[1] (com.openssh.sshd.BBBBB-BBBB[3539]): Service exited with abnormal code: 255
    
por yuxuan 16.01.2016 / 02:41

0 respostas

Tags