git clone ssh地址時一直提示Permission denied, please try again

1.執行:

eval `ssh-agent -s`

否則,執行ssh-add時會出現錯誤提示:Could not open a connection to your authentication agent.

2.執行

ssh-add ~/id_rsa
即 /c/Users/xxx/.ssh/id_rsa

3.git clone git@gitlab:XXX.git


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