This gist is accessible using:
- this short URL: https://frama.link/github_ntlm
- this QR code: qrcode
Most tools don't know how to pass a NTLM proxy, but do know how to pass an HTTP proxy.
Use cntlm to proxify the NTML proxy with a local HTTP proxy (replace $DOMAIN and $USER with the right values):
$ sudo apt install cntlm
$ cntlm -H -d $DOMAIN -u $USER
$ sudo vi /etc/cntlm.confSet domain and username, and paste the output of the cntlm command above in that file.
:wq
$ sudo service cntlm restart$ sudo apt install socat
$ mkdir -p ~/.ssh
$ cat >>| ~/.ssh/config <<EOF
Host github
User git
Hostname github.com
Port 22
ProxyCommand socat - PROXY:localhost:%h:%p,proxyport=3128
EOFThat's it, you're ready to clone GitHub repositories with read / write access.
$ git clone github:REGOVAR/Regovar.gitNote: use github where you used to have [email protected], so that it takes your ~/.ssh/config file into account.