SVN+SSH, not having to do ssh-add every time? (Mac OS)

后端 未结 7 645
傲寒
傲寒 2020-11-29 17:00

I know the answer is out there, but I\'m pretty Unix-dumb and probably wouldn\'t recognize the solution if it hit me in the face.

I\'m on a Mac, connecting to a SVN

7条回答
  •  攒了一身酷
    2020-11-29 17:09

    Since macOS 10.12.2 you can use the UseKeychain option. Read more here or look into man ssh_config.

         UseKeychain
             On macOS, specifies whether the system should search for passphrases in the user's keychain
             when attempting to use a particular key. When the passphrase is provided by the user, this
             option also specifies whether the passphrase should be stored into the keychain once it has
             been verified to be correct.  The argument must be ``yes'' or ``no''.  The default is ``no''.
    

    So just do the following:

    echo "UseKeychain yes" >> ~/.ssh/config

提交回复
热议问题