Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
来源:互联网 发布:php 围棋提子 编辑:程序博客网 时间:2024/05/16 12:07
Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
为什么要安装SSH?因为在Hadoop启动以后,namenode是通过SSH(Secure Shell)来启动和停止各个节点上的各种守护进程的。作为一个菜鸟,第一次使用Hadoop,安装配置有点复杂,到Ubuntu配置SSH这一步时,有点问题,经过琢磨后,发现了奥秘,现在把自己的一些心得分享下。
Ubuntu默认并没有安装ssh服务,如果通过ssh链接Ubuntu,需要自己手动安装openssh-server。判断是否安装ssh服务,可以通过如下命令进行:
ssh localhost
结果我在这里发现了一个问题,如下:
问题分析如下:出现这个问题是因为Ubuntu默认没有安装openssh-server,我们用一个命令来看下,如果只有agent,说明没有安装openssh-server,命令如下:
ps -e|grep ssh
效果如下:
既然问题找到了,我们就开始用命令来安装openssh-server,命令如下:
sudo apt-get install openssh-server
安装完成后,我们再用ps -e|grep ssh命令来看下,openssh-server安装上去没有。输入命令后出现如下截图,说明安装完毕,图中sshd就是我们所安装的。
ps -e|grep ssh
最后,我们通过ssh localhost命令来看下,这个命令主要用来连接本机如果出现要输入密码,说明成功。
ssh localhost
提高Ubuntu的SSH登陆认证速度的办法 http://www.linuxidc.com/Linux/2014-09/106810.htm
开启SSH服务让Android手机远程访问 Ubuntu 14.04 http://www.linuxidc.com/Linux/2014-09/106809.htm
如何为Linux系统中的SSH添加双重认证 http://www.linuxidc.com/Linux/2014-08/105998.htm
在 Linux 中为非 SSH 用户配置 SFTP 环境 http://www.linuxidc.com/Linux/2014-08/105865.htm
Linux 上SSH 服务的配置和管理 http://www.linuxidc.com/Linux/2014-06/103627.htm
SSH入门学习基础教程 http://www.linuxidc.com/Linux/2014-06/103008.htm
更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- ubuntu安装配置ssh-connect to host localhost port 22: Connection refused
- Ubuntu ssh: connect to host localhost port 22:Connection refused
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused 问题
- 输入ssh localhost, 出现问题“ssh: connect to host localhost port 22: Connection refused”
- ssh: connect to host localhost port 22: Connection refused
- How to Build ARPACK in Windows10 with Microsoft Visual Studio 2015
- 快速学会制作表格
- struts2表单标签实验:个人信息表单
- HashTable与HashMap区别
- 利用python-docx更新word中的表格内容
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- JavaScript高级程序设计笔记 BOM (六)
- 内存优化:内存管理机制
- 第五届蓝桥杯猜字母
- 统计字符串
- ThinkPHP使用PHPexcel导出excel文件(已封装的输出类)
- Java
- Memcache Java 客户端使用
- CUDA学习日记9