Я смог к ssh к серверу Ubuntu 16.04.2 перед перезагрузкой. Таким образом, после перезагрузки я попробовал к ssh, но перестал работать с сообщением ssh_exchange_identification: read: Connection reset by peer
.
Странная часть - то, что, после ожидают в течение приблизительно 10 минут, я могу к ssh к серверу. Существует ли блокировка времени? Раз так, как сбросить это?
Ниже мои конфигурации на сервере:
sshd: ALL
в/etc/hosts.allowufw status Status: inactive
root
использование открытого ключа включенный следующее в /etc/ssh/sshd_config
PermitRootLogin, без паролей
PubkeyAuthentication да
StrictModes нет
PasswordAuthentication да
В/root/.ssh/config у меня есть следующее:
Хост *
StrictHostKeyChecking нет
ключ паба клиента находится в сервере /root/.ssh/authorized_keys
Журнал детали здесь: ssh -vvv root@192.168.0.100 OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016 debug1: Reading configuration data /root/.ssh/config debug1: /root/.ssh/config line 6: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: resolving "192.168.0.100" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to 192.168.0.100 [192.168.0.100] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/id_rsa type 1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.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
Спасибо!
Я решил проблему следующим образом: я зашел на хост-компьютер и выполнил несколько команд.
sudo mkdir /var/run/sshd
sudo chmod 755 -R /var/run/sshd
sudo service ssh restart
После этого я подключился к машине.