Navigation

    GitHub中文社区
    • GitHub排行榜

    论坛

    • Login
    • Categories
    • Recent
    • Tags
    • Popular

    XShell拒绝非root用户远程登录Linux,提示ssh服务器拒绝了密码

    技术交流
    2
    3
    230
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Cattyyyyyy
      Cattyyyyyy last edited by

      求教大佬~

      XShell拒绝非root用户远程登录Linux,提示ssh服务器拒绝了密码,账号密码是正确的,但是root用户可以正常登录。

      查看了ssh服务,PermitRootLogin yes。

      b465e09f-1d34-4c59-b073-4f460e0d967e-image.png

      1 Reply Last reply Reply Quote 0
      • A
        ammu95 last edited by ammu95

        这和xshell没关系。执行下面命令实现

        vi /etc/ssh/sshd_config
        PasswordAuthentication yes
        

        然后重启服务使配置生效

        systemctl restart sshd.service
        
        Cattyyyyyy 1 Reply Last reply Reply Quote 0
        • Cattyyyyyy
          Cattyyyyyy @ammu95 last edited by

          @ammu95 谢谢大佬~😊

          1 Reply Last reply Reply Quote 0
          • First post
            Last post