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


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