mac下生成ssh,配置到碼雲上不能用

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章