Ubuntu下 ssh : connect to host localhost port 22:Connection refused
来源:互联网 发布:青木原森林 知乎 编辑:程序博客网 时间:2024/05/29 04:19
Ubuntu下测试ssh时使用ssh localhost 命令,出现错误提示connect to host localhost port 22:Connection refused
造成这个错误的原因可能是ssh-server未安装或者未启动。ubuntu 11.10 默认安装openssh-client,但是木有安装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
linux 下如何设置SSH服务开机启动:
chkconfig --level 2345 sshd on
--level 指定系统在2345运行级别时,通常在35中开启就行,开启(on)sshd服务,关闭则用(off)
临时控制启动停止则用:/etc/rc.d/init.d/sshd start | stop | restart
- 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
- windows下ftp命令大全
- lwip源码分析6——tcp层
- 【7gyy】利用F11恢复崩溃系统
- MFC下对话框字体大小设置
- 【7gyy】物尽其用win 7收藏夹功能
- Ubuntu下 ssh : connect to host localhost port 22:Connection refused
- Linux下定义Windows常用数据类型
- 【7gyy】电脑磁盘分区需要注意的问题
- java时间类型转换
- IIS6.0配置_IIS主机头填写,服务器多站点配置
- 交通灯管理系统
- MJ-评论《特种部队2》8分
- Redhat无法进入登录界面,系统修复命令
- IOS中arc的基础知识