Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement