Эта проблема меня сильно смущает. Что я сделал:
- открыть переадресацию портов
remoteмаршрутизатора.
: когда я ssh *@*** на local компьютере, журнал remote маршрутизатора показывает
[Доступ по локальной сети удаленно] из
*.*.*.*:37482 до 192.168.0.16:22
*.*.*.* ip local компьютера
- открыть
remote loginв систему на удаленномMac
Но я не могу подключиться к удаленному компьютеру remote mac .
На local компьютере это показывает
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
Находясь на remote компьютере Mac, я подключаю системный журнал. это показывает
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
