mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 03:04:34 +01:00
release: Add the Ed25519 vagrant insecure key
Both insecure keys, RSA and Ed25519, are required.
Obtained from: b40f6e5fda
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/835
This commit is contained in:
parent
0fa637ffee
commit
ef35e5eaee
@ -52,10 +52,11 @@ vagrant_common () {
|
||||
# Configure sudo to allow the vagrant user
|
||||
echo 'vagrant ALL=(ALL:ALL) NOPASSWD: ALL' >> ${DESTDIR}/usr/local/etc/sudoers
|
||||
|
||||
# Configure the vagrant ssh key
|
||||
# Configure the vagrant ssh keys
|
||||
mkdir ${DESTDIR}/home/vagrant/.ssh
|
||||
chmod 700 ${DESTDIR}/home/vagrant/.ssh
|
||||
echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key" > ${DESTDIR}/home/vagrant/.ssh/authorized_keys
|
||||
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN1YdxBpNlzxDqfJyw/QKow1F+wvG9hXGoqiysfJOn5Y vagrant insecure public key" >> ${DESTDIR}/home/vagrant/.ssh/authorized_keys
|
||||
chown -R 1001 ${DESTDIR}/home/vagrant/.ssh
|
||||
chmod 600 ${DESTDIR}/home/vagrant/.ssh/authorized_keys
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user