firemiles
V2EX  ›  macOS

OSX10.11 github ssh 需要每次需要手动配置 ssh-agent

  •  
  •   firemiles · Oct 4, 2015 · 2965 views
    This topic created in 4052 days ago, the information mentioned may be changed or developed.

    10.10 的时候,刚开始配置了一次 ssh-agent ,之后就再也没有配置了,升级到 10.11 后,发现每次开终端都要 ssh-agent 和 ssh-add 一遍,不然就找不到密钥,各位有碰到这种情况吗?只能把这两句命令加到 zshrc 里去了吗。

    3 replies  •  2015-11-28 19:07:24 +08:00
    firemiles
    firemiles
    OP
    Oct 4, 2015
    1
    突然发现是用 brew 装了 git 的原因,原来一直是使用系统自带的,需要进行什么配置吗?
    firemiles
    firemiles
    OP
    Oct 4, 2015
    2
    终于搞明白了,是系统自带的有记住密码功能,所以每次都不用输入密码账号,还以为自带的进行了什么配置默认使用 ssh 代替 https 。
    gkiwi
    gkiwi
    Nov 28, 2015❤️1
    3
    ssh-add xxx 改成 ssh-add -K xxx
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1170 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 00:29 · PVG 08:29 · LAX 16:29 · JFK 19:29
    ♥ Do have faith in what you're doing.