如何使用我自己的服务器设置GitKraken

嗨遵循指南( https://www.linux.com/learn/how-run-your-own-git-server)我可以从命令行使用git和我的服务器上的存储库.

我安装了GitKraken,然后在我的电脑上打开了存储库目录.它识别远程存储库,但我无法拉/推.点击编辑原点,我得到:

Name : origin
Pull URL: ssh://user@hostname/home/user/project-1.git
Push URL: ssh://user@hostname/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

我已经尝试过使用了

ssh-keygen -t rsa

cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'

最佳答案 Juste在窗口上解决了这个问题:

>您需要使用本地ssh代理(Pageant).
>在设置/验证上选中“使用本地代理”.
>务必在计算机中安装Pageant并运行. (与PuTTY一起安装).
>将您的密钥添加到Pageant.

我不知道如何在Unix上解决它,但你必须搜索localSSHAgent.

点赞