Skip to main content
Visitor II
June 6, 2021
Question

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

  • June 6, 2021
  • 1 reply
  • 865 views

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

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    June 7, 2021

    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