Ubuntu 连接错误 Connection closed by foreign host
2017-11-14 09:54
429 查看
1、出现突然连接不上并报Connection closed by foreign host
2、网上查了一下是ssh服务问题,也有可能是远程服务器端出现问题
所以可以重启一下远程服务器
3、重启ssh服务:
cd /etc/ssh
sudo chmod 644 ./*
sudo chmod 600 ssh_host_dsa_key
sudo chmod 600 ssh_host_rsa_key
sudo chmod 755 .
/etc/init.d/ssh restart
2、网上查了一下是ssh服务问题,也有可能是远程服务器端出现问题
所以可以重启一下远程服务器
3、重启ssh服务:
cd /etc/ssh
sudo chmod 644 ./*
sudo chmod 600 ssh_host_dsa_key
sudo chmod 600 ssh_host_rsa_key
sudo chmod 755 .
/etc/init.d/ssh restart
相关文章推荐
- 【ubuntu】ssh连接ubuntu虚拟机被拒Connection closed by foreign host.
- ubuntu 12.04中xshell链接报: Connection closed by foreign host.错误
- Connection closed by foreign host无法连接linux
- 修改sshd_config解决 xshell 链接 linux 错误 connection closed by foreign host
- 修改sshd_config解决 xshell 链接 linux 错误 connection closed by foreign host
- SSH无法连接:Connection closed by foreign host
- 修改sshd_config解决 xshell 链接 linux 错误 connection closed by foreign host
- xshell连接虚拟机上CentOS7提示Connection closed by foreign host
- ssh连接报Connection closed by foreign host.
- Xshell连接CentOS 6.9掉线 Connection closed by foreign host
- 【笔记】处理ssh 连接后一段时间就掉线 Connection closed by foreign host
- vmware虚拟机下CentOS7出现ssh连接被connection reset by peer错误,host key /etc/ssh/ssh_host_ed25519_key
- 连接linux ssh连接提示:Connection closed by remote host
- ssh连接其他主机时候ssh_exchange_identification: Connection closed by remote host
- Connection closed by foreign host.-运营商线路问题导致
- 127.0.0.1’ is not allowed to connect to this MySQL serverConnection closed by foreign host
- Connection closed by foreign host
- RHEL7 Connection closed by foreign host.
- Linux登录报错-Connection closed by foreign host
- Escape character is '^]'. Connection closed by foreign host.