V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
barbery
5.47D
0.36D
V2EX  ›  问与答

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

  •  
  •   barbery · 2013 年 12 月 29 日 · 2577 次点击
    这是一个创建于 4406 天前的主题,其中的信息可能已经有所发展或是发生改变。
    配置如下:(被注释掉的选项没列出来的)
    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
    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   982 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:18 · PVG 04:18 · LAX 12:18 · JFK 15:18
    ♥ Do have faith in what you're doing.