Last active
June 12, 2017 12:46
-
-
Save JZfi/a9c9b72f30e123635e1745d44cf641a9 to your computer and use it in GitHub Desktop.
ssh git ansible troubleshooting tips and tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tips on debugging ssh, git and ansible | |
--- Connection problems | |
Git 2.3+ | |
GIT_SSH_COMMAND="ssh -vvv" git clone example | |
Git 2.10+ | |
git config core.sshCommand "ssh -vvv" | |
git clone example | |
--- Debug a working connection | |
GIT_TRACE_PACKET=true git clone ... | |
GIT_TRACE=true git clone ... | |
--- Retain the scripts ansible produces | |
export ANSIBLE_KEEP_REMOTE_FILES=1 | |
--- More output in Ansible | |
export ANSIBLE_DEBUG="-vv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment