zoukankan      html  css  js  c++  java
  • ssh 或 putty 连接linux报错解决方法

    由于当天多次输入错误密码,ssh和putty就连接不上了,纠结了很久解决问题

    ssh连接提示错误:server unexpectedly closed network connection

    putty 连接提示错误

    问题原因是:服务器安装了Denyhosts,会周期性的扫描/var/log/auth.log,找出通过ssh反复失败访问系统的行为来源然后将他们添加到/etc/hosts.deny中禁止这些ip连接,
    解决方式:修改/etc/ssh/sshd_config 查找 MaxStartups 10 取消前面的#,把后面的10改大保存退出;删除/etc/hosts.deny中的自己的ip记录,重启ssh,命令service sshd restart  然后重新连接问题解决

  • 相关阅读:
    ES6-Object
    ES6-Iterator
    ES6-Generator
    ES6-fetch
    ES6-Function
    ES6-Array
    ES6-Class
    SQLite使用事务更新—by command
    交款功能代码
    SQLite本地事务处理
  • 原文地址:https://www.cnblogs.com/hshanghai/p/4126425.html
Copyright © 2011-2022 走看看