阿里云linux服务器登录失败,Connection closed
ssh_exchange_identification: read: Connection reset by peer报错如下:
[root@izbp17x1~]# ssh admin@139.196.。。 -p 2048 -v
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Connecting to 139.196.214.67 [139.196.214.67] port 2048.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
ssh_exchange_identification: read: Connection reset by peer
解决方法:去你需要ssh的那台机器吧ssh被连接的权限开启
[root@iZ11of]# vim /etc/hosts.allow
sshd:IP:allow
sshd:ALL(表示所有的IP)[root@iZ11ofs]# service sshd restart
问题解决
最新文章
- VMware中CPU分配不合理以及License限制引起的SQL Scheduler不能用于查询处理
- 纯css实现模块阴影变色效果
- Java集合框架学习总结
- CSS3+HTML5实现块阴影与文字阴影
- rails中两种回滚-reversible和revert区别
- 使用android.support.design.widget.TabLayout出现java.lang.reflect.InvocationTargetException
- c#关键字详解
- android152 笔记 2
- (转载)设计模式学习笔记(十一)——Facade外观模式
- 转自52 梦回凉亭的她 Java常见问题,面试题
- combinations(组合)
- SSM-SpringMVC-17:SpringMVC中深度剖析HandlerAdapter处理器适配器底层
- mysql group by 对多个字段进行分组
- (原)ubuntu中使用conda安装tensorflow-gpu
- 使用jquery.validation+jquery.poshytip做表单验证--未完待续
- ASP.NET MVC一次删除多笔记录 V2.0
- [Web 前端] React-router4简约教程
- git报错:Pull is not possible because you have unmerged files解决方法
- make编译三
- 虚拟机CentOS7网络配置