SmartGit对裸机存储库的身份验证失败,而从命令行推送则有效
我使用命令行添加了一个远程裸存储库:SmartGit对裸机存储库的身份验证失败,而从命令行推送则有效,git,ubuntu,ssh,smartgit,Git,Ubuntu,Ssh,Smartgit,我使用命令行添加了一个远程裸存储库: git add remote production ssh://username@domain.com/path/to/repo.git 我可以使用以下工具推送到存储库: git push production master 现在我想从SmartGit推出: 我右键单击本地主分支并选择推送至… 在窗口中,我选择生产存储库并单击推送 显示一个对话框,询问我私人SSH密钥和密码短语。我指向私钥并键入密码短语,然后单击登录 对话框再次显示,我再次单击登录 Sm
git add remote production ssh://username@domain.com/path/to/repo.git
我可以使用以下工具推送到存储库:
git push production master
现在我想从SmartGit推出:
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.
chmod 600~/.ssh/id\u rsa
)
我错过了什么
sudo apt get安装ssh askpass
sudo apt get安装ssh askpass
在“首选项”部分“身份验证”中配置使用系统SSH客户端时会发生什么情况?@mstrap成功!首先,日志抛出一个错误:
ssh askpass[…]没有这样的文件或目录
。所以我做了sudo apt安装ssh-askpass
。然后尝试了如上所述的新推送。谢谢我建议根据mstrap建议写一个答案,标记为已接受。在“首选项”部分“身份验证”中配置使用系统SSH客户端时会发生什么?@mstrap成功!首先,日志抛出一个错误:ssh askpass[…]没有这样的文件或目录
。所以我做了sudo apt安装ssh-askpass
。然后尝试了如上所述的新推送。谢谢我建议根据mstrap的建议写一个答案,马克被接受。