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

后端 未结 7 606
傲寒
傲寒 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:27

    Add your key to the keychain by running:

    ssh-add -K ~/.ssh/id_rsa
    

    and edit your ssh config (~/.ssh/config) file to automatically load keys from the key chain to the ssh-agent (AddKeysToAgent yes option) and store passphrases in the keychain (UseKeychain yes option):

    Host *
     AddKeysToAgent yes
     UseKeychain yes
    
    0 讨论(0)
提交回复
热议问题