cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create git-proxy.sh file in /bin folder in ubuntu 20.04.

ARehm
Associate III

C $> sudo apt-get update

PC $> sudo apt-get install corkscrew

PC $> git config --replace-all --global core.gitproxy "$HOME/bin/git-proxy.sh"

PC $> git config --add --global core.gitproxy "none for <MyPrivateNetworkDomain>" (optional, for example .st.com or localhost)

PC $> echo 'exec corkscrew <MyProxyServerUrl> <MyProxyPort> $* $HOME/.git-proxy.auth' > $HOME/bin/git-proxy.sh

PC $> chmod 700 $HOME/bin/git-proxy.sh

PC $> echo '<MyProxyLogin>:<MyProxyPassword>' > $HOME/.git-proxy.auth

PC $> chmod 600 $HOME/.git-proxy.auth

I'm following above commands but when execute "echo 'exec corkscrew <MyProxyServerUrl><MyProxyPort> $* $HOME/.git-proxy.auth' > $HOME/bin/git-proxy.sh" it says git-proxy.sh not found

1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @Community member​ ,

check admin right on you station.

do you have write to create a file in $HOME/bin ?

Did you check to create and edit file content by another mean ?

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.