📅  最后修改于: 2022-03-11 14:51:36.599000             🧑  作者: Mango
# 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!)