ssh: connect to host localhost port 22: Connection refused


1.hadoop安裝好之后,執行ssh localhost無法執行,

    提示“ssh: connect to host localhost port 22: Connection refused”。

2.ps -e |grep ssh查看后只有

    “3748 ?        00:00:00 ssh-agent"

3.安裝

    sudo apt-get install openssh-server

4.啟動sshd。

    sudo /etc/init.d/ssh start

5.再次查看:

ps -e |grep ssh
3748 ? 00:00:00 ssh-agent
4085 ? 00:00:00 sshd

6.執行ssh localhost

Linux kali 3.14-kali1-486 #1 Debian 3.14.5-1kali1 (2014-06-07) i686

The programs included with the Kali GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Kali GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Jan 15 09:21:21 2015 from localhost

 

成功!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM