Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kristian Klausen
arch-boxes
Commits
11cf7d45
Commit
11cf7d45
authored
Dec 13, 2020
by
Sven-Hendrik Haase
Browse files
Merge branch 'verify-vagrant-public-ssh-key' into 'master'
Verify vagrant public SSH key See merge request
archlinux/arch-boxes!153
parents
d10e8765
1115f5d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
images/common.sh
View file @
11cf7d45
...
...
@@ -27,7 +27,9 @@ EOF
# install vagrant ssh key
arch-chroot
"
${
MOUNT
}
"
/bin/bash
-e
<<
EOF
install --directory --owner=vagrant --group=vagrant --mode=0700 /home/vagrant/.ssh
curl --output /home/vagrant/.ssh/authorized_keys --location https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
curl --output /home/vagrant/.ssh/authorized_keys --location https://github.com/hashicorp/vagrant/raw/main/keys/vagrant.pub
# WARNING: Please only update the hash if you are 100% sure it was intentionally updated by upstream.
sha256sum -c <<< "9aa9292172c915821e29bcbf5ff42d4940f59d6a148153c76ad638f5f4c6cd8b /home/vagrant/.ssh/authorized_keys"
chown vagrant:vagrant /home/vagrant/.ssh/authorized_keys
chmod 0600 /home/vagrant/.ssh/authorized_keys
EOF
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment