V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xdz0611
V2EX  ›  macOS

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

  •  
  •   xdz0611 · 2016-12-25 17:53:47 +08:00 · 2148 次点击
    这是一个创建于 2695 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我现在需要手动添加到 keychain 中,也就是 ssh-add -k /path/to/key 这样子才行.

    但是我记得以前从来不需要啊,我也不记得什么时候保存到 keychain 中的,最近升级到 10.12.2 之后,每次都要让输入密码呢
    1 条回复    2016-12-25 18:04:15 +08:00
    ericguo
        1
    ericguo  
       2016-12-25 18:04:15 +08:00   ❤️ 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
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5702 人在线   最高记录 6547   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 08:15 · PVG 16:15 · LAX 01:15 · JFK 04:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.