У меня был установлен и работает ssh. Я побежал sudo chmod -R 777 /var
и он прекратил работать. Я изменил разрешения с sudo chmod -R 700 /var
, но это не заставило его снова работать.ssh to localhost показывает «Соединение закрыто удаленным хостом»
Когда я ssh -v localhost
я получаю этот выход:
[email protected]:/$ ssh -v localhost
OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/rajat/.ssh/id_rsa type -1
debug1: identity file /home/rajat/.ssh/id_rsa-cert type -1
debug1: identity file /home/rajat/.ssh/id_dsa type -1
debug1: identity file /home/rajat/.ssh/id_dsa-cert type -1
debug1: identity file /home/rajat/.ssh/id_ecdsa type -1
debug1: identity file /home/rajat/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
[email protected]:/$
Извлеченный урок: не делайте этого. Почему на Земле было бы беспорядочно разрешать все права на/var? Не нарушайте вещи, и как вы думаете, что их испортить еще больше поможет? – tripleee