Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use LAN in our office. I can connect to my VPS Host normally.

But when i back home, (with my Macbook sleeping) , use WLAN , I can't connect the same Host.

Doesn't tip me input password. Just tell me ""

I tried to clear cache about SSH : remove ~/.ssh/know_hosts ; ssh-add -D (remove All identities).
No works.

But after rebooting my Mac, everything go all right.

# 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

When I return to my office , It goes like this:

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: 
share|improve this question
    
And what does the output look like after a reboot? Any hints in /var/log/auth.log on your vps host? –  ott-- Jul 23 '12 at 15:24
    
Can you also try adding a few more v's? I think up to 3 v's can be useful. –  MJD Jul 23 '12 at 17:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.