1
我有一個服務器A上的gitolite設置,我完全可以從我的本地機器克隆存儲庫。gitolite和ssh-agent。拒絕訪問。
[email protected]:$ git clone [email protected]:repo.git
不過,我不能克隆到從服務器B
[email protected]:$ git clone [email protected]:repo.git
Cloning into 'repo'...
R access for repo DENIED to user
(Or there may be no repository at the given path. Did you spell it correctly?)
fatal: The remote end hung up unexpectedly
我在我的〜/ .ssh/config中ForwardAgent激活和ssh-添加-l同一個版本庫給了我完全本地機器和服務器B上的輸出相同。
有沒有人知道什麼可以解釋這一點?
服務器'B'的'ssh git @ A'作爲'user'是什麼?它應該顯示一個gitolite答案。 – VonC
好的,我知道發生了什麼事。我忘記刪除我使用的條目,在B上的/ etc/hosts中對A 進行了一些測試。 – user2819697
好的,我添加了一個說明這種情況的答案。 – VonC