gitsshprivatevscode-remote-ssh

How can I clone a Git repository using CLI when connected with SSH?


In local machine, I can clone organization private repository. But I can not in SSH.

How can I deal with this?

The github username and email are correct. And the error is related to usr, sock, ...

I tried to get access token but I can not get access token. So I thought there maybe a good way to clone without access token, only with username, email, password. But in SSH, the prompt does not appeared.


Solution

  • Hope this solution will help you.

    IN your pc open terminal and Generate the ssh key. To Generate click here

    Then open the public key file cpy it an add it in your github using gui in settings.

    Then try cloning with ssh url given by github, I'm Sure it will work.