diff --git a/packer/scripts/common/vagrant.sh b/packer/scripts/common/vagrant.sh index de5925554..60de57ee7 100644 --- a/packer/scripts/common/vagrant.sh +++ b/packer/scripts/common/vagrant.sh @@ -1,8 +1,7 @@ #!/bin/bash mkdir /home/vagrant/.ssh -wget --no-check-certificate \ - 'https://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' \ - -O /home/vagrant/.ssh/authorized_keys +curl -o /home/vagrant/.ssh/authorized_keys -L \ + 'https://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' chown -R vagrant /home/vagrant/.ssh chmod -R go-rwsx /home/vagrant/.ssh