2017-03-23 67 views
4

嗨遵循指南(https://www.linux.com/learn/how-run-your-own-git-server)我能夠從命令行使用我的服務器上的存儲庫的git。 我安裝了GitKraken,並且在我的電腦上打開了倉庫目錄。它識別遠程存儲庫,但我無法拉/推。點擊編輯原產地,我得到:如何設置GitKraken與我自己的服務器

Name : origin 
Pull URL: ssh://[email protected]/home/user/project-1.git 
Push URL: ssh://[email protected]/home/user/project-1.git 

Gitkraken的錯誤是:

Configured SSH key is an invalid format. 
Please ensure that your key is valid and is an RSA-type key 

我已經tryed使用

ssh-keygen -t rsa 

cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys' 

回答

2

中庸之道解決窗口上的這個問題:

  1. 您需要使用本地ssh代理(Pageant)。
  2. 在設置/驗證檢查「使用本地代理」。
  3. 請確保在您的計算機上安裝了Pageant並正在運行。 (用PuTTY安裝)。
  4. 將你的鑰匙加入尋呼。

我不知道如何解決它在Unix上,但你必須搜索本地SSLHAgent。

相關問題