我使用命令行添加了一个远程裸存储库:
git add remote production ssh://username@domain.com/path/to/repo.git
我可以使用:
推送到存储库git push production master
现在我想从SmartGit推出:
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.
我已检查过我是否拥有正确的访问权限以及存储库是否存在。私钥也只对onwer(chmod 600 ~/.ssh/id_rsa
)具有读/写权限。
我错过了什么?
答案 0 :(得分:0)
sudo apt-get install ssh-askpass