📜  git 每次都要求输入密码 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:36.599000             🧑  作者: Mango

代码示例3
# start ssh-agent to remember key
eval $(ssh-agent)

# add and save key permenantly on linux
ssh-add ~/.ssh/id_rsa

# for permeenant save on mac
vim ~/.ssh/config
Host *
   AddKeysToAgent yes
   UseKeychain yes
   IdentityFile ~/.ssh/id_rsa
# write and close (:x) force close (:q!)