我已經安裝並正在運行ssh。我跑了sudo chmod -R 777 /var
並停止工作。我更改了sudo chmod -R 700 /var
的權限,但這並沒有讓它再次運行。SSH到本地主機顯示「由遠程主機關閉連接」
當我做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 2012-01-30 21:39:05