Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I ran vagrant init/up as root initially with one of my boxes, however, all of my other boxes are owned by a normal user, so every time I want to use the box as a regular user, I have to sudo and then change the key ownership to login.

I have changed all of the permissions in ~/.vagrant.d/*, and the vagrant files themselves. How can I access this box as non-root user? Is there another place I need to change permissions?

share|improve this question

Changing (or setting) the config.ssh.username = "vagrant" line in your Vagrantfile will allow you to ssh into another user account assuming it exists. You can also use `vagrant ssh -p' which allows you to manually enter the authentication credentials you would like to use each time you ssh into the box.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .