`
wbj0110
  • 浏览: 1536423 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)

阅读更多

配置hadoop时必须的一步就是保证ssh是联通的。如果你的ubuntu中没有安装ssh,具体的安装步骤是这样的:

 

1 https://launchpad.net/ubuntu/lucid/i386/openssh-client/1:5.3p1-3ubuntu3

下载文件” openssh-client_5.3p1-3ubuntu3_i386.deb 并在终端中安装。

sudo dpkg -i openssh-client_5.3p1-3ubuntu3_i386.deb 

2https://launchpad.net/ubuntu/lucid/i386/openssh-server/1:5.3p1-3ubuntu3

下载文件” openssh-server_5.3p1-3ubuntu3_i386.deb”并在终端中安装。
sudo dpkg -i openssh-server_5.3p1-3ubuntu3_i386.deb

 

3 https://launchpad.net/ubuntu/lucid/i386/ssh/1:5.3p1-3ubuntu3

下载文件”ssh_5.3p1-3ubuntu3_all.deb”并在终端中安装。
sudo dpkg -i ssh_5.3p1-3ubuntu3_all.deb

 

 

==================================

错误原因:

1.sshd 未安装

2.sshd 未启动

3.防火墙

 

解决方法:

1.确定安装sshd:  sudo apt-get install openssh-server

2.启动sshd: net start sshd

3.检查防火墙设置

 

==============================

/bin/etc/init.d sshd start

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics