【发布时间】:2021-02-03 01:38:46
【问题描述】:
我正在尝试通过 ssh 克隆一个私有 github 存储库。
我已经使用存储在 .ssh 中的非 root 用户主目录中的 keygen 生成对密钥。
/home/nonroot/.ssh
但是,当我尝试时:
git clone git@github.com:user/repo.git
我明白了:
Cloning into 'discord-bot'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
按照this,我试过了:
ssh -T git@github.com
得到:
bash: /usr/bin/ssh: Permission denied
我该怎么办?
运行 Ubuntu 20.04
【问题讨论】: