-1
我只是嘗試多個SSH身份在我的Mac,這是我設置如何使用本地SSH代理?
Host x
HostName bitbucket.org
IdentityFile ~/.ssh/id_rsa_x
Host y
HostName bitbucket.org
IdentityFile ~/.ssh/id_rsa_y
在主機Ÿ一切工作正常,但X沒有工作,有人可以幫我解決這個
我只是嘗試多個SSH身份在我的Mac,這是我設置如何使用本地SSH代理?
Host x
HostName bitbucket.org
IdentityFile ~/.ssh/id_rsa_x
Host y
HostName bitbucket.org
IdentityFile ~/.ssh/id_rsa_y
在主機Ÿ一切工作正常,但X沒有工作,有人可以幫我解決這個
主機名是一樣的在兩個條目上。 同時檢查.ssh文件夾中IdentityFile的文件權限。
如果不能在所有的工作嘗試調試SSH連接:
ssh -vvv [email protected]
OpenSSH_5.1p1, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to host [x.x.x.x] port 22.
debug1: Connection established.
嗨@mrks我遵循主機名本教程 [鏈接](https://confluence.atlassian.com/bitbucket/configure -multiple-ssh-identities-for-gitbash-mac-osx-linux-271943168.html) 它們具有相同的主機名 – alpiopio
@alpiopio。在ssh的調試模式中,我看到ssh使用了配置文件中給出的正確的id文件。因此,請確保在遠程目標上也部署了公鑰。 – mrks
感謝回覆@mrks,這個問題剛剛發生在gitKraken上,它不會檢測到我的別名,但是在源碼樹上都能正常工作 – alpiopio