zoukankan      html  css  js  c++  java
  • ssh 连接出错

    ssh出现 debug1: Authentications that can continue: publickey,password Permission denied, please try again. 修改/etc/ssh/sshd-config文件. 将其中的PermitRootLogin no修改为yes PubkeyAuthentication yes修改为no AuthorizedKeysFile .ssh/authorized_keys前面加上#屏蔽掉, PasswordAuthentication no修改为yes vi /etc/ssh/sshd-config (详细说说sshd-config的配置解释) Port 22 # SSH 预设使用 22 这个 port,您也可以使用多的 port !亦即重复使用 port 这个设定项目即可! Protocol 2 # 选择的 SSH 协议版本,可以是 1 也可以是 2 ,如果要同时支持两者,就必须要使用 2,1 这个分隔了 PermitRootLogin no # 是否允许 root 登入!预设是允许的,但是建议设定成 no! PubkeyAuthentication yes # 是否允许 Public Key AuthorizedKeysFile .ssh/authorized_keys # 上面这个在设定若要使用不需要密码登入的账号时,那么那个账号的存放档案所在档名! PasswordAuthentication no # 是否需要密码的验证 PermitEmptyPasswords no # 若上面那一项如果设定为 yes 的话,这一项就最好设定为 no ,这个项目在是否允许以空的密码登入!当然不许! PrintMotd no # 登入后是否显示出一些信息呢?例如上次登入的时间、地点等 ChallengeResponseAuthentication no # 是否启用其它的 PAM 模块!启用这个模块将会导致 PasswordAuthentication 设定失效! UseDNS no ClientAliveInterval 60
  • 相关阅读:
    逆向工具的使用
    linux下用crunch工具生成密码
    Bugku--web-wp
    stegsolve.jar压缩包打开和使用方法
    华为eNSP无限井号#解决方法
    后渗透之meterpreter使用攻略
    后渗透2
    Raid磁盘阵列存储原理-数据恢复思路分析
    Office文档损坏或乱码如何修复
    遇到ZFS文件系统如此棘手的问题,这种办法简单又高效!
  • 原文地址:https://www.cnblogs.com/fengidri/p/2757459.html
Copyright © 2011-2022 走看看