xdz0611
V2EX  ›  macOS

为啥现在每次用 iterm2 登陆 ssh 都要让我输入 key 的密码

  •  
  •   xdz0611 · Dec 25, 2016 · 2619 views
    This topic created in 3455 days ago, the information mentioned may be changed or developed.
    我现在需要手动添加到 keychain 中,也就是 ssh-add -k /path/to/key 这样子才行.

    但是我记得以前从来不需要啊,我也不记得什么时候保存到 keychain 中的,最近升级到 10.12.2 之后,每次都要让输入密码呢
    1 replies    2016-12-25 18:04:15 +08:00
    ericguo
        1
    ericguo  
       Dec 25, 2016   ❤️ 3
    https://www.reddit.com/r/osx/comments/52zn5r/difficulties_with_sshagent_in_macos_sierra/

    vi ~/.ssh/config

    Host *
    UseKeychain yes
    AddKeysToAgent yes
    IdentityFile ~/.ssh/id_rsa
    IdentityFile ~/.ssh/id_25519
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1179 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 17:58 · PVG 01:58 · LAX 10:58 · JFK 13:58
    ♥ Do have faith in what you're doing.