@vitalysokolov

Почему пропал доступ к виртуальной машине Virtual Box по ssh?

Виртуальная машина с Debian работает на VPS тоже с Debian. Месяц на виртуальную машину не заходил, сегодня попробовал, не пускает по ssh:
$ ssh heinz@localhost -p 49222 -vvv
OpenSSH_7.9p1 Debian-10+deb10u1, OpenSSL 1.1.1d  10 Sep 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "localhost" port 49222
debug2: ssh_connect_direct
debug1: Connecting to localhost [::1] port 49222.
debug1: connect to address ::1 port 49222: Connection refused
debug1: Connecting to localhost [127.0.0.1] port 49222.
debug1: Connection established.
debug1: identity file /home/vsokolov/.ssh/id_rsa type -1
debug1: identity file /home/vsokolov/.ssh/id_rsa-cert type -1
debug1: identity file /home/vsokolov/.ssh/id_dsa type -1
debug1: identity file /home/vsokolov/.ssh/id_dsa-cert type -1
debug1: identity file /home/vsokolov/.ssh/id_ecdsa type -1
debug1: identity file /home/vsokolov/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/vsokolov/.ssh/id_ed25519 type -1
debug1: identity file /home/vsokolov/.ssh/id_ed25519-cert type -1
debug1: identity file /home/vsokolov/.ssh/id_xmss type -1
debug1: identity file /home/vsokolov/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9p1 Debian-10+deb10u1
ssh_exchange_identification: read: Connection reset by peer


Виртуальная машина работает, проверял
$ vboxmanage list runningvms
"Debian" {e45cad1d-7213-44bc-8a21-a0255be844bb}


Остановка машины (vboxmanage controlvm "Debian" savestate)и перезапуск, а также перезапуск сервера VPS ничего не меняют.

$ sudo netstat -tnlp | grep :49222
tcp        0      0 0.0.0.0:49222           0.0.0.0:*               LISTEN      4245/VBoxHeadless

Помогите разобраться, в чем дело.
  • Вопрос задан
  • 254 просмотра
Пригласить эксперта
Ответы на вопрос 1
@q2digger
никого не трогаю, починяю примус
права на папку .ssh и на ее содержимое проверьте заодно
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы