当使用SmartGit作为SSH客户端时,它缓存第一个选定的键.SmartGit说,当你进一步试图拉/推到另一种回购的时候。
SmartGit将用于连接Bitbucket的键保存到首选项。但是所有的repos都有地址:ssh://git@bitbucket.org in SmartGit首选项。
发布于 2015-09-01 05:59:02
在这里提到的和这条线中,您应该能够使用%HOME%\.ssh\config file,将url更改为bitbucket1:userA/myrepo1,bitbucket2:userA/myrepo2。
这意味着:
%HOME%\.ssh\config file:配置:
host bitbucket1
user git
hostname bitbucket.org
port 22
identityfile /C/path/to/.ssh/key1
host bitbucket2
user git
hostname bitbucket.org
port 22
identityfile /C/path/to/.ssh/key2/C/path/to/.ssh/中,您有一个key1 (私有)和key1.pub (公共) ssh文件(key2/key2.pub相同)https://stackoverflow.com/questions/32324376
复制相似问题