git 免密登录
git 分为2种模式:
ssh 形如: git@codeup.aliyun.com:para/hugo.git
https 形如: https://codeup.aliyun.com/para/hugo.git
ssh 免密登录
临时添加:
ssh-add ~/.ssh/id_rsa如果报错:
Could not open a connection to your authentication agent.限执行
ssh-agent bash再执行
ssh-add ~/.ssh/id_rsa永久添加
在 ~/.ssh/config中添加: widnwos:
Host *
AddKeysToAgent yes
IdentityFile C:\Users\Administrator\.ssh\id_rsaMac
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsaLinux
Host *
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa