1

Я использую LAN в нашем офисе. Я могу нормально подключиться к своему VPS-хосту.

Но когда я возвращаюсь домой (с моим спящим Macbook), использую WLAN, я не могу подключиться к тому же хосту.

Не дает чаевые мне вводить пароль. Только скажи мне ""

Я пытался очистить кеш о SSH: удалить ~/.ssh/know_hosts; ssh-add -D (удалить все тождества).
Нет работ.

Но после перезагрузки моего Mac все прошло хорошо.

# ssh root@199.119.ip.ip -v
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /Users/Lijicheng/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to 199.119.ip.ip [199.119.ip.ip] port 22.
debug1: Connection established.
debug1: identity file /Users/Lijicheng/.ssh/id_rsa type 1
debug1: identity file /Users/Lijicheng/.ssh/id_rsa-cert type -1
debug1: identity file /Users/Lijicheng/.ssh/id_dsa type -1
debug1: identity file /Users/Lijicheng/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.6
Address 199.119.ip.ip maps to unassigned.psychz.net, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

(After a long waitting... )

Connection closed by 199.119.ip.ip

Когда я возвращаюсь в свой офис, это выглядит так:

ssh root@199.119.ip.ip -v
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /Users/Lijicheng/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to 199.119.ip.ip [199.119.ip.ip] port 22.
debug1: Connection established.
debug1: identity file /Users/Lijicheng/.ssh/id_rsa type 1
debug1: identity file /Users/Lijicheng/.ssh/id_rsa-cert type -1
debug1: identity file /Users/Lijicheng/.ssh/id_dsa type -1
debug1: identity file /Users/Lijicheng/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.6
reverse mapping checking getaddrinfo for unassigned.psychz.net [199.119.ip.ip] failed - POSSIBLE BREAK-IN ATTEMPT!
debug1:  Miscellaneous failure (see text)
PROCESS_TGS

debug1:  An invalid name was supplied
unknown mech-code 0 for mech 1 2 752 43 14 2

debug1:  Miscellaneous failure (see text)
unknown mech-code 0 for mech 1 3 6 1 5 5 14

debug1:  An unsupported mechanism was requested
unknown mech-code 0 for mech 1 3 5 1 5 2 7

debug1:  Miscellaneous failure (see text)
unknown mech-code 0 for mech 1 3 6 1 5 2 5

debug1: Offering GSSAPI proposal: gss-gex-sha1-4s+AAtlALj0s3Z3xGjNXPQ==,gss-group1-sha1-4s+AAtlALj0s3Z3xGjNXPQ==,gss-group14-sha1-4s+AAtlALj0s3Z3xGjNXPQ==
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host '199.119.ip.ip (199.119.ip.ip)' can't be established.
RSA key fingerprint is 33:16:1a:aa:fd:6f:b4:57:dc:e8:93:a3:23:32:e4:36.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '199.119.ip.ip' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1:  Miscellaneous failure (see text)
PROCESS_TGS

debug1:  An invalid name was supplied
unknown mech-code 0 for mech 1 2 752 43 14 2

debug1:  Miscellaneous failure (see text)
unknown mech-code 0 for mech 1 3 6 1 5 5 14

debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1:  An unsupported mechanism was requested
unknown mech-code 0 for mech 1 3 5 1 5 2 7

debug1:  Miscellaneous failure (see text)
unknown mech-code 0 for mech 1 3 6 1 5 2 5

debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/Lijicheng/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /Users/Lijicheng/.ssh/id_dsa
debug1: Next authentication method: password
root@199.119.ip.ip's password: 

0