Não é possível ssh no Ubuntu 16.04

2

Eu tenho:

PC A (Ubuntu 14.04)

PC B (Ubuntu 16.04)

Servidor S1 (CentOS)

Servidor S2 (desconhecido)

Estágio:

ssh my_user @ S1 do computador A ----- > OK

ssh my_user @ S1 do computador B ----- > OK

ssh my_user @ S2 do computador A ----- > OK

ssh my_user @ S2 do computador B ----- > falhou

Isso é um detalhe de erro:

ssh myuser@S2_address -v
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g-fips  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to S2_address [S2_address] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/vinhphat/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/vinhphat/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/vinhphat/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/vinhphat/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/vinhphat/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/vinhphat/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/vinhphat/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/vinhphat/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
ssh_exchange_identification: read: Connection reset by peer

Esse problema ocorre quando eu atualizei para o Ubuntu 16.04.

    
por PhatHV 23.09.2016 / 11:10

1 resposta

0

Eu tive isso e foi porque meu arquivo /etc/ssh/sshd_config estava em branco.

Eu reinstalei os pacotes ssh e funcionou para mim:

sudo apt-get purge openssh*
sudo apt get install openssh-server

    
por idios77 23.01.2017 / 04:45