首页 > 其他 > 详细

ssh: connect to host localhost port 22: Connection refused

时间:2015-02-13 16:26:20      阅读:309      评论:0      收藏:0      [点我收藏+]

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

 

成功!

ssh: connect to host localhost port 22: Connection refused

原文:http://www.cnblogs.com/cdsj/p/4290371.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!