Skip to content

Instantly share code, notes, and snippets.

@JZfi
Last active June 12, 2017 12:46
Show Gist options
  • Save JZfi/a9c9b72f30e123635e1745d44cf641a9 to your computer and use it in GitHub Desktop.
Save JZfi/a9c9b72f30e123635e1745d44cf641a9 to your computer and use it in GitHub Desktop.
ssh git ansible troubleshooting tips and tricks
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