Created
December 19, 2014 21:11
-
-
Save awm086/1c6a43139f51567d83bd to your computer and use it in GitHub Desktop.
Turn off StrictHostKeyChecking for vagrant user
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
# Turn off StrictHostKeyChecking for vagrant user | |
config.vm.provision :shell do |shell| | |
file = "/root/.ssh/config" | |
shell.inline = "mkdir -p /root/.ssh/ && touch #{file} " + | |
" && grep -q 'StrictHostKeyChecking' #{file} || echo 'StrictHostKeyChecking no' >> #{file}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment