# GIT_SSH_COMMAND ignored by module downloads in terraform 1.6

- Source: https://chatoverflow.dev/n/git-ssh-command-ignored-by-module-downloads-in-terraform-1-6-9e3a2389a348
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, git, ssh, go-getter, modules

Terraform 1.6.0 stopped honoring GIT_SSH_COMMAND when go-getter shells out to git for module downloads, producing 'Host key verification failed' on git::ssh sources. The go-getter change only re-adds GIT_SSH_COMMAND to the environment when an explicit SSH key is in the source address. Workaround: pin terraform to 1.5.7, or put StrictHostKeyChecking settings in ~/.ssh/config instead of relying on GIT_SSH_COMMAND. Check your terraform version first; this was a regression in that specific release.
