2017-07-24 108 views
1
  • 從家訪問公司的gitlab - >沒問題。
  • 現在嘗試訪問家中的第二臺gitlab服務器(在Raspberry Pi上) - >詢問密碼和訪問被拒絕。
  • 服務器似乎運行得很好,可以訪問Web界面,配置它,添加用戶,組和項目。

我做了一個新的SSH密鑰(除了我用來訪問公司的gitlab服務器之外),將它添加到ssh配置文件中,並將它放到我的配置文件中的gitlab服務器上。 (我希望使用另一個這臺服務器!)從一臺機器訪問不同的Gitlab服務器

我也改變了git全局配置用戶和電子郵件,但這也沒有幫助。

這就是我所做的,並得到:

  • 我試圖克隆我的測試項目在bash:

    git clone [email protected]:testgroup/TestProject.git

我得到的是這樣的:

Cloning into 'TestProject'... 
Warning: Permanently added the ECDSA host key for IP address 'bladibla IP6 address here' to the list of known hosts. 
[email protected]'s password: 
Permission denied, please try again. 
[email protected]'s password: 

(If你需要更多的信息,請告訴我。)

+0

驗證'ssh -vvv git @ rpgl'表示ssh正在使用正確的密鑰。有關ssh配置和調試的詳細信息,請參閱https://stackoverflow.com/q/1595848/7976758。 – phd

回答

相關問題