Ubuntu下 ssh : connect to host localhost port 22:Connection refused
来源:互联网 发布:win7仿mac os x主题包 编辑:程序博客网 时间:2024/06/18 13:04
Ubuntu下测试ssh时使用ssh localhost 命令,出现错误提示connect to host localhost port 22:Connection refused
造成这个错误的原因可能是ssh-server未安装或者未启动。
运行 ps -e | grep ssh,查看是否有sshd进程,如果没有,说明server没启动;
通过 /etc/init.d/ssh -start 启动server进程,如果提示ssh不存在,那么就是没安装server。
通过 sudo apt-get install openssh-server命令安装即可。
转载自:http://asyty.iteye.com/blog/1440141
阅读全文
0 0
- 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 hadoop 下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
- 算法设计与应用基础:第十三周
- 数据库索引简要概述
- 快速排序(Quick Sort)小结
- SURF(Speeded Up Robust Features)算法原理
- js 常见的日期时间
- Ubuntu下 ssh : connect to host localhost port 22:Connection refused
- EasyPusher如何推送纯音频RTSP流媒体数据
- hive全套安装过程,通吃环境。
- 动态规划-硬币问题
- arm 反汇编
- windows下C语言实现<读取>和<写入> *.ini文件。
- Hihocoder上java程序的提交格式
- [bigdata-078] python3 logging 的示例 TimedRotatingFileHandler和RotatingFileHandler 基于时间切分和基于文件大小切分
- 免费PM2.5数据如何获取之PM25.in网站API调用JSON数据处理方法