ogon:~ root# cd /deng/code/idea-store/
bogon:idea-store root# git clone [email protected]:easy-world/RocektMQ.git
Cloning into ‘RocektMQ’…
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
報這個錯
解決:
先運行 eval ssh-agent -s
再輸入 ssh-add ~/.ssh/id_rsa