2015-09-01 28 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相同)
相關問題