Could not read from remote repository

前端 未结 21 3133
北荒
北荒 2020-12-15 02:30

I have received the following error multiple times:

Could not read remote repository. Please make sure you have the correct access rights and the repo

相关标签:
21条回答
  • 2020-12-15 03:01

    If you have updated you OSX recently you have to call ssh-add -A. Have a look at this answer: https://apple.stackexchange.com/questions/254468/macos-sierra-doesn-t-seem-to-remember-ssh-keys-between-reboots

    0 讨论(0)
  • 2020-12-15 03:03

    Make sure you are using the correct SSH keys/usernames on both your GitHub account and your local machine. Here's how you can do that on GitHub

    Also, you might consider using an alternative Git manager. I've never heard of Aptana, but I do know that GitHub has an awesome GUI program for managing your repositories.

    In the future, this is all much easier and more streamlined on Linux/Unix operating systems like Ubuntu. Ubuntu is geared towards developers and has things like Git and SSH installed correctly by default.

    0 讨论(0)
  • 2020-12-15 03:03

    Installing a root/CA Certificate

    Given a CA certificate file foo.crt, follow these steps to install it on Ubuntu:

    Create a directory for extra CA certificates in /usr/share/ca-certificates:

    sudo mkdir /usr/share/ca-certificates/extra
    

    Copy the CA .crt file to this directory:

    sudo cp foo.crt /usr/share/ca-certificates/extra/foo.crt
    

    Let Ubuntu add the .crt file's path relative to /usr/share/ca-certificates to /etc/ca-certificates.conf:

    sudo dpkg-reconfigure ca-certificates
    

    This is an old post, but this is they only thing that I found that worked.

    0 讨论(0)
  • 2020-12-15 03:04

    A simple solution to this is delete the old ssh key from github/gitlab and add the same key again. This is easy work around and you have to hussle with anything

    0 讨论(0)
  • 2020-12-15 03:06

    For me, I had followed all the steps mentioned in Adding new ssh key and rest of the auxiliary links related to this issue. But the issue was network access. Solution - using VPN to access my Github Enterprise. (in my case Georgia Tech VPN for github.gatech.edu)

    0 讨论(0)
  • 2020-12-15 03:06

    In my case, I generated new key pairs but forgot to update public key in github.com (settings).

    0 讨论(0)
提交回复
热议问题