ssh :connect to host XXX.XXX.XXX.XXX port XX: Connection refused
来源:互联网 发布:刺客信条黑旗优化补丁 编辑:程序博客网 时间:2024/05/23 01:11
ubuntu下遇到的问题
1. ping 一下 XXX.XXX.XXX.XXX 能否ping通
我ping了之后无法ping通
windows下ping的通,记下ip
2. 查看sshd服务是否启动
运行 ps -e | grep ssh,查看是否有sshd进程
我发现我的ubuntu中根本没有sshd进程
如果没有,说明server没启动,通过 /etc/init.d/ssh -start 启动server进程,如果提示ssh不存在 那么就是没安装server
通过 sudo apt-get install openssh-server命令安装即可
安装之后运行命令/etc/init.d/ssh -start,启动server通过ps -e | grep ssh检查 sshd是否已经启动
3. sudo gedit /etc/hosts 将
ip storm
添加到文件中,例如:
172.26.178.93 igerrit
保存文件并logout,然后再登录,错误消失,可以正常repo sync到android代码了。
0 0
- ssh :connect to host XXX.XXX.XXX.XXX port XX: Connection refused
- ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection refused
- ssh: connect to host xxx port 22: Connection refused -ubuntu
- ssh: connect to host xxx.xxx.xxx.xxx port 22:Connection refused(以Ubuntu12.04为例)
- Host ''xxx.xx.xxx.xxx'' is not allowed to connect to this MySQL server
- host'xx.xxx.xxx.xxx' is not allowed to connect to this mysql server
- Host 'xx.xx.xxx.xxx' is not allowed to connect to this MySQL server
- rsync错误处理-failed to connect to 192.168.xxx.xxx: Connection refused (111)
- "Host 'xxx.xxx.xxx.xx' is blocked because of many connection errors; unblock with 'mysqladmin flush-
- ssh 连接异常解决纪实(Shared connection to xxx.xxx.xxx.xxx closed.)
- ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xx.xxx' (111)
- 连接MySQL数据库报 "Host XXX.XXX.XXX.XXX is not allowed to connect to this MySQL server " 解决办法。
- mysql 远程连接--Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server
- 主机连接虚拟机MySQL报错:Host 'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server
- 解决问题——SQLyog连接报错:Host ''xxx.xx.xxx.xxx'' is not allowed to connect to this MySQL server
- ssh 安装及登录提示:connection refused(ssh: connect to host XX.XX.XX.XX port 22: Connection refused)的解决办法
- Host 'xxx.xx.xx-xx.xx.com' is not allowed to connect to this MySQL serverConnection closed by foreig
- Host 'xxx.xx.xx-xx.xx.com' is not allowed to connect to this MySQL serverConnection closed by foreig
- FTP和Ant整合案例
- RCC 2014 Warmup (Div. 2)__Cunning Gena
- linux 几中互斥机制
- 许嵩歌词里的值得深思的话
- linux禁ping和允许ping的方法
- ssh :connect to host XXX.XXX.XXX.XXX port XX: Connection refused
- 一段代码解析JAVA中的多态
- JS----判断键值,Math对象
- ueditor的显示
- 虽然不写一句代码也可保证同一次会话的SessionID不变(取不到Session的值)
- POJ 1733并查集
- Android 面试精华题目总结
- 法雷级数[Farey Sequence]
- 截获Back键的事件,因为不会返回setResult的数据