标签:文件夹 key email 配置 host lan div demo pac
Host "authmanage"
HostName "code.csdn.net"
User "git"
IdentityFile "C:/Users/WangJun/.ssh/id_rsaAuthManage"
Host "demo"
HostName "code.csdn.net"
User "git"
IdentityFile "C:/Users/WangJun/.ssh/id_rsaDemo"
參数解说:
比方你的git地址是:git@code.csdn.net:wangjuntytl/authmanage.git
所以你配置了config文件后。就不要在直接使用命令:git clone git@code.csdn.net:wangjuntytl/authmanage.git
而是使用git clone git@authmanage:wangjuntytl/authmanage.git 命令,ssh会依据你设置host找到相应的hostname
附:生成ssh私钥公钥的命令:
ssh-keygen -t rsa -C “your email” -f filename
标签:文件夹 key email 配置 host lan div demo pac
原文地址:http://www.cnblogs.com/zhchoutai/p/6856267.html