Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
来源:互联网 发布:淘宝店名可以重复吗 编辑:程序博客网 时间:2024/05/17 03:32
为什么要安装SSH?因为在Hadoop启动以后,namenode是通过SSH(Secure
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
0 0
- 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
- 项目配置文件app.config/configuration/configSections
- 快捷键的使用
- Spring MVC+Mybatis 框架整合(一)
- 有对逗B,叫夫妻
- linux之cp/scp命令
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- 来自知乎的Android学习总结
- 同学们,圣诞节快乐
- Unity第三人称视野
- Android各类开源代码
- 我给我的时间
- 连接网络(Connecting to the Network)
- spring注解注入:<context:component-scan>详解
- UI组件适配器AdapterView(创建ListView,Adapter接口).