原文:connection closed by foreign host / Permissions 0620 for '/etc/ssh/ssh_host_ed25519_key' are too open 解决方案

发生此次故障的原因: 在文件夹授权时 错误的执行了 chmod R 本来只想授权当前文件夹的 结果... 然后就导致xshell连不上了 懵逼... 解决方案 将权限收回: 执行: chmod R etc ssh 重启: systemctl status sshd.service 以下是解决问题时的一些关键字: root iZ vcdtfg o j bu odeqyZ server systemc ...

2019-09-11 10:38 0 1276 推荐指数:

查看详情

解决 SSH Connection closed by foreign host 问题

Xshell 报错 : 1.有可能是IP和别人冲突,改一下IP就好了 2.也有可能是文件权限的问题。改一下: 3、也有可能是防火墙的问题 或者: 解决 SSH Connection closed by foreign host ...

Fri Jul 12 16:18:00 CST 2019 1 35613
ssh 客户端连接提示Connection closed by foreign host

现在查看 1. 服务端是否已安装ssh 2. 配置是否正常 3. 端口是否被占用 4. 网上大多数都提到的密钥文件读取权限的问题,可以通过chmod修改文件读取权限。 都是默认,而且已经开启的情况下; 感觉最好的方法是先停掉服务端的sshd, 因为普通开启的都是sshd -D ...

Tue Jul 27 22:24:00 CST 2021 0 144
Connection closed by foreign host

可能是公司的ip进黑名单了。 查SSH黑名单的资料发现: 查看这两个文件: vim /e ...

Fri Oct 18 19:00:00 CST 2019 0 2030
connection closed by foreign host

用 Xshell 连接服务器总是报错 : Connection closed by foreign host.Disconnected from remote host...12原因可能是 SSH 服务器没设置保活时间间隔 , 具体设置如下 : # vim /etc/ssh ...

Thu Nov 28 19:08:00 CST 2019 0 747
ssh中“Host key verification failed.“的解决方案

SSH连接的时候Host key verification failed. 用OpenSSH的人都知ssh会把你每个你访问过计算机的公钥(public key)都记录在~/.ssh/known_hosts。当下次访问相同计算机时,OpenSSH会核对公钥。如果公钥 ...

Fri Oct 18 00:45:00 CST 2019 0 3457
ubuntu成功解决ssh连接提示 "Connection closed by remote host"

网上有一群答案全都指向了一个解决方法:https://blog.csdn.net/fmyzc/article/details/81389704 但是我遇到的问题偏偏解决不了,不是上述的问题。其实这个报错有很多导致的原因。 我的原因是22端口被占用,你可以通过netstat -anp ...

Tue Apr 28 22:33:00 CST 2020 0 1360
关于xshell:Connection closed by foreign host

因为原来系统网有时掉,有时卡(同局域网别人没事),重新做了系统。 装了xmanager3,在用xshell连接linux服务器时,提示:服务器发送了一个无效的密钥,然后输出:Connection closed by foreign host 首先大家可以根据其他博客作者所说的原因排查下 ...

Tue Sep 12 02:09:00 CST 2017 0 1448
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM