git bug
2017-09-02 本文已影响0人
谁是我的小超人
- 碰到git 的bug。
明明通过SSH协议跟github远程仓库建立了连接。但是就是无法通过验证。
- 查看连通性
- 更换连接方式
解决方案:
git clone git@github.com:geyutang/cs231n.git
//能不加sudo 就不加sudo
Linux 的每个账户都是独立存在的,因此在tang这个普通用户下建立的SSH口令,是不能兼容于超级用户sudo 的。因此git clone 的时候也应该区分开。否则输入
sudo git clone git@github.com:geyutang/cs231n
SSH的配置是基于用户的,因此能不加sudo就不要加sudo
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.