vmware虚拟机下CentOS7出现ssh连接被connection reset by peer错误,host key /etc/ssh/ssh_host_ed25519_key
2017-12-31 18:11
3075 查看
背景:该问题是由于CRT无法链接Vmware下的Centos7
解决:
1、 删除该目录下的4个文件,并重启ssh服务,
ssh_host_ecdsa_key
ssh_host_ecdsa_key.pub
sh_host_ed25519_key
ssh_host_ed25519_key.pub
2、若service sshd status发现仍有告警信息,则执行如下命令(y, 回车,输入密码),然后再执行步骤1就可解决:
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ED25519_key
ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key
解决:
1、 删除该目录下的4个文件,并重启ssh服务,
ssh_host_ecdsa_key
ssh_host_ecdsa_key.pub
sh_host_ed25519_key
ssh_host_ed25519_key.pub
2、若service sshd status发现仍有告警信息,则执行如下命令(y, 回车,输入密码),然后再执行步骤1就可解决:
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ED25519_key
ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key
相关文章推荐
- 在Centos 6.6 中ssh出现Connection to localhost closed by remote host的问题排查
- SSH 错误解决案例1:Read from socket failed: Connection reset by peer
- 关于SSH登录出现Connection reset by peer 问题。
- 关于Putty连接Linux出现Network error:Connection reset by peer LINUX问题解决
- 【OpenStack】SSH登录虚拟机出现"Read from socket failed: Connection reset by peer"问题的解决办法
- pyspider连接rabbitmq ,结果出现socket.error: [Errno 104] Connection reset by peer 这样的报错信息
- 连接Ubuntu 时 出错 ssh_exchange_identification: read: Connection reset by peer
- 【OpenStack】SSH登录虚拟机出现"Read from socket failed: Connection reset by peer"问题的解决办法
- Redis经常连接不上还报 Connection reset by peer: socket write error的错误的解决办法
- 在VMware8.0.4安装centos6.3出现蓝屏,显示“anaconda: Fatal IO error 104 (Connection reset by peer) on X server :1.0. install exited abnormally [1/1]”?
- 虚拟机VMware7.0.0安装CentOS-6.2出现fatal IO error 104 connection reset by peer on xserver:1.0解决
- SSH 总是出现ssh_exchange_identification: read: Connection reset by peer问题的解决方案
- 登录ssh提示:ssh_exchange_identification: read: Connection reset by peer error
- ssh连接提示 "Connection closed by remote host"
- CentOS7使用ssh不能登录,报错:Read from socket failed: Connection reset by peer
- gem install 出现Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org
- 使用xshell连接服务器问题:ssh_exchange_identification: Connection closed by remote host
- 在android studio导入应用原码出现的error: protocol fault (couldn't read status): Connection reset by peer