ssh: connect to host your.remote.host.ip port 22: Connection refused
2013-03-27 10:10
381 查看
remote host 没有安装ssh server
解决方法:
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
解决方法:
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
相关文章推荐
- Git配置非22端口,解决:ssh: connect to host xxx port 22: Connection timed out fatal: The remote end hung up unexpectedly
- 清空本地ssh记录数据,ssh: connect to host Ip port 22: Connection refused
- ssh: connect to host 192.168.1.127 port 22: Operation timed out fatal: Could not read from remote re
- ssh:connect to host localhost port 22: Connection refused解决方法
- Failed to connect to the host via ssh: ssh: connect to host 192.68.1.75 port 22: No route to host
- github连接报"ssh: connect to host github.com port 22: Connection timed out"错误
- ssh:connecttohostxxx.xxx.xxx.xxxport22:Connectionrefused
- git ssh: connect to host github.com port 22: Connection refused
- git ssh: connect to host gitub.com port 22解决办法
- ssh: connect to host localhost port 22: Connection refused : 通过系统日志排查问题
- ssh: connect to host localhost port 22: Connection refused
- ssh :connect to host 192.168.0.7 port 22: Connection refused
- 解决ssh-connect-to-host-github-com-port-22-connection-timed-out
- ssh: connect to host localhost port 22: Connection refused (3)
- ssh connect to host port 22 bad file number
- Ubuntu下 ssh : connect to host localhost port 22:Connection refused
- SSH连接GitHub提示ssh: connect to host github.com port 22: Bad file number
- 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