git: ef35e5eaee9c - main - release: Add the Ed25519 vagrant insecure key

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sat, 03 Feb 2024 04:08:12 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=ef35e5eaee9ca3ab4ecdec180d5e2ba594759e13

commit ef35e5eaee9ca3ab4ecdec180d5e2ba594759e13
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2023-11-04 00:17:19 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-02-03 04:05:49 +0000

    release: Add the Ed25519 vagrant insecure key
    
    Both insecure keys, RSA and Ed25519, are required.
    
    Obtained from:  https://github.com/hashicorp/vagrant/commit/b40f6e5fdae1113518e9c92f96dfcd364b646ff9
    Reviewed by:    imp
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/835
---
 release/tools/vagrant.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/release/tools/vagrant.conf b/release/tools/vagrant.conf
index 814a2892bb31..83a72b8e8aac 100644
--- a/release/tools/vagrant.conf
+++ b/release/tools/vagrant.conf
@@ -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