git bug

2017-09-02  本文已影响0人  谁是我的小超人
  1. 查看连通性
  2. 更换连接方式
    解决方案:
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.
上一篇 下一篇

猜你喜欢

热点阅读