繁体   English   中英

对裸存储库的SmartGit身份验证失败,而从命令行推送工作

[英]SmartGit authentication to bare repository fails, while push from commandline works

我使用命令行添加了一个远程裸存储库:

git add remote production ssh://username@domain.com/path/to/repo.git

我可以使用以下命令推送到存储库:

git push production master

现在我想从SmartGit推出:

  1. 我右键单击我的本地主分支并选择Push To ....
  2. 在窗口中,我选择生产存储库,然后单击Push
  3. 将显示一个对话框,询问我是否有私人SSH密钥和密码。 我指向私钥并键入密码,然后单击“ 登录”
  4. 再次显示该对话框,然后再次单击“ 登录”
  5. SmartGit在Output-window中显示错误:

     Push: Could not read from remote repository. /var/www/website> git push --porcelain --progress --recurse-submodules-check production refs/heads/master Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Could not read from remote repository. 

我已经检查过我是否拥有正确的访问权限以及存储库是否存在。 私钥也只对onwer( chmod 600 ~/.ssh/id_rsa )具有读/写权限。

我错过了什么?

  1. 在“ 首选项”部分的“ 身份验证 部分中启用使用系
  2. 安装ssh-askpass: sudo apt-get install ssh-askpass
  3. 然后再推一次......

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM