ssh连接报Connection closed by foreign host.
2016-10-20 11:03
429 查看
今天连接linux时居然连不上,报错信息是:
Connecting to 192.168.16.133:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Connection closed by foreign host.
Disconnected from remote host(hadoop3) at 10:56:11.
Type `help' to learn how to use Xshell prompt.
查了一下终于找到了解决办法,只需要一些命令就可以了:
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/sshd restart完成后在重新连接就行了。
Connecting to 192.168.16.133:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Connection closed by foreign host.
Disconnected from remote host(hadoop3) at 10:56:11.
Type `help' to learn how to use Xshell prompt.
查了一下终于找到了解决办法,只需要一些命令就可以了:
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/sshd restart完成后在重新连接就行了。
相关文章推荐
- 【ubuntu】ssh连接ubuntu虚拟机被拒Connection closed by foreign host.
- SSH无法连接:Connection closed by foreign host
- 【笔记】处理ssh 连接后一段时间就掉线 Connection closed by foreign host
- SSH连接服务器报ssh_exchange_identification: Connection closed by remote host
- Connection closed by foreign host无法连接linux
- Xshell连接CentOS 6.9掉线 Connection closed by foreign host
- SSH:Connection closed by foreign host
- ssh连接其他主机时候ssh_exchange_identification: Connection closed by remote host
- ssh连接提示 "Connection closed by remote host"
- Ubuntu 连接错误 Connection closed by foreign host
- xshell连接虚拟机上CentOS7提示Connection closed by foreign host
- ssh连接提示 "Connection closed by remote host"
- ssh连接提示 "Connection closed by remote host"
- SSH 报错 connection closed by foreign host
- 使用xshell连接服务器问题:ssh_exchange_identification: Connection closed by remote host
- Connection closed by foreign host
- Connection closed by foreign host.
- Connection closed by foreign host.-运营商线路问题导致
- XShell连不上本机虚拟机报:Connection closed by foreign host.
- ‘127.0.0.1’ is not allowed to connect to this MySQL serverConnection closed by foreign host