Невозможно сделать SSH для удаленного Сервера.Ошибка: ssh_exchange_identification: чтение: сброс соединения по пиру - PullRequest
0 голосов
/ 31 мая 2018
I have changed the file sshd_config under /etc/ssh/ directory. I have also changed the permission of files under /etc/ssh/ directory. Now when i am trying to execute

ssh username@remoteserverIP -vv 
I am getting below logs.

OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug2: resolving "server IP" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to server IP [server IP] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
ssh_exchange_identification: read: Connection reset by peer

У меня нет доступа к пользователю root.Я тоже пробовал через шпаклевку.Замазка выдаёт ниже ошибку.

Сервер неожиданно закрыл сетевое соединение

1 Ответ

0 голосов
/ 31 мая 2018

Возможно, /etc/hosts.deny содержит запись для "ALL:" или "ssh:", запрещающую вам подключение.

Добавление "ssh: ALL" или "ssh: x.x.x.x" (заменяя xxxx на вашIP), чтобы /etc/hosts.allow мог решить эту проблему.

...