I can log in to my Ubuntu server via SSH from anywhere in my local network, but I cannot from the internet. When I attempt to, It requests my username, displays the banner, and prompts for the password. But when I enter the password, the SSH server hangs and freezes.
I have tested this using Putty, the SSH in another Linux server, and ConnectBot for Android. All of them have this problem. The auth.log file says that the connection is going through, and that the password is accepted, but the client sees nothing, and eventually disconnects. The auth.log just says this is a normal disconnect. If it helps, I know that I can access the Apache2 website running on it, so connection is happening. I have seen several other posts about this, but none of them gave any serious help.
Any help?
The output from ssh -v is
OpenSSH_6.7p1, OpenSSL 1.0.1j 15 Oct 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 50.168.183.239 [50.168.183.239] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/nitsua_revaew/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/nitsua_revaew/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/nitsua_revaew/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/nitsua_revaew/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/nitsua_revaew/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/nitsua_revaew/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/nitsua_revaew/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/nitsua_revaew/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-8
debug1: match: OpenSSH_6.6.1p1 Ubuntu-8 pat OpenSSH_6.6.1* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr [email protected] none
debug1: kex: client->server aes128-ctr [email protected] none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA d2:84:4a:6e:f4:a6:85:75:95:28:59:62:a7:d0:93:4a
debug1: Host '50.168.183.239' is known and matches the ECDSA host key.
debug1: Found key in /home/nitsua_revaew/.ssh/known_hosts:1
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
__ _ _
\ \ / /__| | ___ ___ _ __ ___ ___
\ \ /\ / / _ \ |/ __/ _ \| '_ ` _ \ / _ \
\ V V / __/ | (_| (_) | | | | | | __/
\_/\_/ \___|_|\___\___/|_| |_| |_|\___|
to
Austin's Server
Enjoy Your Stay
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/nitsua_revaew/.ssh/id_rsa
debug1: Trying private key: /home/nitsua_revaew/.ssh/id_dsa
debug1: Trying private key: /home/nitsua_revaew/.ssh/id_ecdsa
debug1: Trying private key: /home/nitsua_revaew/.ssh/id_ed25519
debug1: Next authentication method: password
[email protected]'s password:
After I login, it shows
Authenticated to 50.168.183.239 ([50.168.183.239]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
Then it freezes. Any ideas?
ssh -v
, and post the output.