Git: Permission denied (publickey) fatal - Could not read from remote repository. while cloning Git repository

后端 未结 30 2055
青春惊慌失措
青春惊慌失措 2020-12-12 10:10

I am unable to clone a Git repository, and getting this error:

krishna.soni@KRISHNACHANDRAS /c/Projects $ git clone http://stage.abc.com:10088/pqr
http://<         


        
30条回答
  •  青春惊慌失措
    2020-12-12 10:36

    If there is still issue around access after creating SSH and adding it in your Bitbucket account or wherever, you need to do the following in terminal on GitBash, OSX or Linux:

    # Lists already added identities (‘ssh keys’)
    ssh-add -l
    

    Then, if you don't see your key listed, add it with the following (replace identity with its real name):

    # Add a new identity
    ssh-add ~/.ssh/identity
    

    This worked for me.

提交回复
热议问题