2015-09-01 32 views

回答

1

由于mentioned herethis thread,你应该能够reference multiple private ssh keys in a %HOME%\.ssh\config file,更改url为bitbucket1:userA/myrepo1,bitbucket2:userA/myrepo2

这意味着:

  • 您在首选项中选择系统SSH
  • 添加了一个%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相同)
相关问题