Eu posso entrar no meu servidor Ubuntu via SSH de qualquer lugar na minha rede local, mas não consigo pela internet. Quando eu tento, ele solicita meu nome de usuário, exibe o banner e solicita a senha. Mas quando eu digito a senha, o servidor SSH trava e congela.
Eu testei isso usando o Putty, o SSH em outro servidor Linux e o ConnectBot para Android. Todos eles têm esse problema. O arquivo auth.log diz que a conexão está passando e que a senha é aceita, mas o cliente não vê nada e, eventualmente, desconecta. O auth.log apenas diz que esta é uma desconexão normal. Se isso ajudar, eu sei que posso acessar o site do Apache2 rodando nele, então a conexão está acontecendo. Eu vi vários outros posts sobre isso, mas nenhum deles deu uma ajuda séria.
Qualquer ajuda?
A saída de ssh -v é
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:
Depois de fazer o login, ele mostra
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.
Então congela. Alguma idéia?