XShell连不上本机虚拟机报:Connection closed by foreign host.
来源:互联网 发布:淘宝虚拟物品怎么收货 编辑:程序博客网 时间:2024/05/20 13:39
如题,在网上搜了一下,游说各种原因,比如:
1:和别人同时连虚拟机
2:网络不好,重连接一下就可以
3:本网络段内IP冲突
4:防火墙问题
在查询了各方原因后,发现4解决了我的问题。借鉴网页:http://www.cnblogs.com/gylei/archive/2011/12/10/2283484.html
解决办法是利用网页中的
1)关闭宿主机的防火墙;略
2)关闭虚拟机的防火墙;
# chkconfig iptables off //重启后生效,永久关闭
# /etc/init.d/iptables status //可查看防火墙状态
3)关闭虚拟机的selinux;
# vi /etc/selinux/config //把SELINUX=enforcing改为SELINUX=disabled //保存退出,重启生效,永久关闭
# getenforce //可查看selinux状态。
宿主机的防火墙本来就是关着的。
所以执行完2、3之后,重启虚拟机,XShell就可以连上了。
0 0
- XShell连不上本机虚拟机报:Connection closed by foreign host.
- xshell连接虚拟机上CentOS7提示Connection closed by foreign host
- ubuntu 12.04中xshell链接报: Connection closed by foreign host.错误
- ubuntu 12.04中xshell链接报: Connection closed by foreign host.错误
- ubuntu xshell报错解决方法: Connection closed by foreign host.错误
- Xshell连接CentOS 6.9掉线 Connection closed by foreign host
- Connection closed by foreign host.
- Connection closed by foreign host.
- Connection closed by foreign host.
- Connection closed by foreign host.
- Connection closed by foreign host
- Connection closed by foreign host
- Connection closed by foreign host
- Connection closed by foreign host
- Linux登录报错-Connection closed by foreign host
- ssh连接报Connection closed by foreign host.
- Connection closed by foreign host问题解决
- 修改sshd_config解决 xshell 链接 linux 错误 connection closed by foreign host
- 【Java编程思想 - 练习】吸血鬼数字
- 算法笔记
- 【Android 初学】5、控件--ImageView的使用方法
- Memcached的CAS机制的实现
- 【Android 初学】6、线性布局--深入LinearLayout
- XShell连不上本机虚拟机报:Connection closed by foreign host.
- 【Android 初学】7、相对布局--初步入门
- Exception details are logged in Window > Show View > Error Log
- 【Android 初学】8、进度条(ProgressBar、SeekBar、RatingBar)
- 【Android 初学】9、Activity生命周期
- Selenium官方文档:Selenium RC 安装步骤
- 【Android 初学】10、Intent对象的使用
- 【Android 初学】11、关于Android当中的线程(初级)
- nginx搭建流媒体服务器