azev
V2EX  ›  问与答

为社么不能密码登录 Linux

  •  
  •   azev · Nov 9, 2022 · 1444 views
    This topic created in 1474 days ago, the information mentioned may be changed or developed.

    ssh root@ip 时返回 Permission denied (publickey).
    是不是服务器禁用了密码登录?
    但是我检查 sshd_config 没有发现相应配置

    #PermitRootLogin prohibit-password
    PermitRootLogin yes
    #PubkeyAuthentication yes
    #PasswordAuthentication yes
    #PermitEmptyPasswords no

    azev
    azev
    OP
    Nov 9, 2022
    1
    错了 发现文件最后还有一行 禁用了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   839 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 20:46 · PVG 04:46 · LAX 12:46 · JFK 15:46
    ♥ Do have faith in what you're doing.