Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # Turn off StrictHostKeyChecking for vagrant user
  2. config.vm.provision :shell do |shell|
  3. file = "/root/.ssh/config"
  4. shell.inline = "mkdir -p /root/.ssh/ && touch #{file} " +
  5. " && grep -q 'StrictHostKeyChecking' #{file} || echo 'StrictHostKeyChecking no' >> #{file}"
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement