hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.05k stars 4.42k forks source link

Add keypair support for ed25519 #13219

Closed chrisroberts closed 1 year ago

chrisroberts commented 1 year ago

Add support for ed25519 type keys. This support consists of two parts:

Vagrant insecure private keys

A new ed25519 type public/private key pair has been added to the ./keys directory of the vagrant repository. The public/private key files in the directory are now the following:

Vagrant support for ed25519

The Vagrant::Util::Keypair can now generate an RSA or Ed25519 key pair. Both keys are now used for authentication when no private key has been specified (for example: initial authentication).

When removing the insecure key and replacing it with the a newly generated key, a check is done to determine what key types Vagrant supports are supported by the server. The best match will be used. If a match cannot be determined, Vagrant will fallback to the previous behavior of generating an RSA keypair.

Fixes #12589 Fixes #12458 Fixes #12693