Commit 11cf7d45 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Merge branch 'verify-vagrant-public-ssh-key' into 'master'

Verify vagrant public SSH key

See merge request !153
parents d10e8765 1115f5d8
Pipeline #4365 failed with stages
in 3 minutes and 28 seconds
...@@ -27,7 +27,9 @@ EOF ...@@ -27,7 +27,9 @@ EOF
# install vagrant ssh key # install vagrant ssh key
arch-chroot "${MOUNT}" /bin/bash -e <<EOF arch-chroot "${MOUNT}" /bin/bash -e <<EOF
install --directory --owner=vagrant --group=vagrant --mode=0700 /home/vagrant/.ssh install --directory --owner=vagrant --group=vagrant --mode=0700 /home/vagrant/.ssh
curl --output /home/vagrant/.ssh/authorized_keys --location curl --output /home/vagrant/.ssh/authorized_keys --location
# 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 chown vagrant:vagrant /home/vagrant/.ssh/authorized_keys
chmod 0600 /home/vagrant/.ssh/authorized_keys chmod 0600 /home/vagrant/.ssh/authorized_keys
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment