Using Git under Proxy on Ubuntu
If you are trying to use an SSH connection with an HTTP proxy, it won't work. Github offers Git over HTTPS as well. So try:
git clone https://github.com/myusername/myrepo.git
sugab
Ubuntu user, beginner. Equipped with old MBP: Intel® Core™ i7-3520M CPU @ 2.90GHz × 4 and 16 GB ram. Most used apps: Gedit, Firefox, vim, gnome-term, GNU/Octave, minbar, sound, sox, praat, audacity, libsnd, SPTK, nautilus, sunrise, Chromium, Lyx, Latex, Libreoffice, gcc/g++, clang/clang++, Arduino, python3. Save power, more life. Minimal install, maximum speed.
Updated on September 18, 2022Comments
-
sugab over 1 year
I do git clone using terminal on Ubuntu 14.04 i.e
git clone [email protected]:myusername/myrepo.git
. Before I did it, I set git to use proxy with command:git config --global http.proxy proxyserver:port
. However, I got this erros message when trying to clone my repo on git. Help needed.Cloning into 'MY REPO'... ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
-
azerafati over 5 yearsany solution for an
ssh
connection?