barbery
8.39D
0.37D
V2EX  ›  问与答

为什么设置了SSH 密钥登录,在ubuntu的命令行下ssh没有密钥是登陆不了了,但是在windows下的putty却还可以用账号登陆,是我哪里设置错了么???

  •  
  •   barbery · Dec 29, 2013 · 2703 views
    This topic created in 4540 days ago, the information mentioned may be changed or developed.
    配置如下:(被注释掉的选项没列出来的)
    Protocol 2

    HostKey /etc/ssh/ssh_host_rsa_key
    HostKey /etc/ssh/ssh_host_dsa_key
    HostKey /etc/ssh/ssh_host_ecdsa_key
    UsePrivilegeSeparation yes

    KeyRegenerationInterval 3600
    ServerKeyBits 768

    SyslogFacility AUTH
    LogLevel INFO

    LoginGraceTime 120
    PermitRootLogin no
    StrictModes yes

    RSAAuthentication yes
    PubkeyAuthentication yes
    AuthorizedKeysFile .ssh/authorized_keys

    IgnoreRhosts yes
    RhostsRSAAuthentication no
    HostbasedAuthentication no



    PermitEmptyPasswords no

    ChallengeResponseAuthentication no


    X11Forwarding yes
    X11DisplayOffset 10
    PrintMotd no
    PrintLastLog yes
    TCPKeepAlive yes


    AcceptEnv LANG LC_*

    Subsystem sftp /usr/lib/openssh/sftp-server


    UsePAM yes

    MaxAuthTries 3
    PasswordAuthentication no
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5377 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 09:08 · PVG 17:08 · LAX 02:08 · JFK 05:08
    ♥ Do have faith in what you're doing.