Github配置多个ssh key对应不同项目

然后 git clone git@xxlh-github.com/xxlh/start就可以用id_rsa访问xxlh/start项目了!

# 这个是原来的key
# github
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_ed25519
	
# 这个是新加的key
# github_2
Host xxlh-github.com
HostName github.com
PreferredAuthentications publickey		
IdentityFile ~/.ssh/id_rsa

发布者

小懿

RingCentral敏捷教练 不懂技术的产品经理不是好教练!

发表评论

邮箱地址不会被公开。 必填项已用*标注