当我从用户提示使用ssh git克隆它正常工作。使git克隆与sudo
git clone ssh://URL.com/soft.git soft_git
SSH密钥id_rsa
和id_rsa.pub
正在/home/user/.ssh
我的目的是执行混帐与sudo
,但我得到了以下错误
Cloning into '/home/user/git/soft'...
Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我创建一个文件夹/root/.ssh
,我复制SSH密钥到它,但我得到了相同的错误
如何exe与sudo可爱的混帐。