當我從用戶提示使用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可愛的混帳。