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'