Skip to content

Commit

Permalink
Update box documentation about keys
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed Jun 26, 2023
1 parent 602d42b commit 2e95d08
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions website/content/docs/boxes/base.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,16 @@ users, passwords, private keys, etc.).

By default, Vagrant expects a "vagrant" user to SSH into the machine as.
This user should be setup with the
[insecure keypair](https://github.com/hashicorp/vagrant/tree/main/keys)
[insecure keypairs](https://github.com/hashicorp/vagrant/tree/main/keys)
that Vagrant uses as a default to attempt to SSH. It should belong to a
group named "vagrant". Also, even though Vagrant uses key-based
authentication by default, it is a general convention to set the
password for the "vagrant" user to "vagrant". This lets people login as
that user manually if they need to.

To configure SSH access with the insecure keypair, place the public
key into the `~/.ssh/authorized_keys` file for the "vagrant" user. Note
To configure SSH access with the insecure keypair, place the [public
keys](https://github.com/hashicorp/vagrant/tree/main/keys/vagrant.pub)
into the `~/.ssh/authorized_keys` file for the "vagrant" user. Note
that OpenSSH is very picky about file permissions. Therefore, make sure
that `~/.ssh` has `0700` permissions and the authorized keys file has
`0600` permissions.
Expand Down

0 comments on commit 2e95d08

Please sign in to comment.