vagrant login as root by default

Mike D picture Mike D · Sep 10, 2014 · Viewed 153.9k times · Source

Problem: frequently the first command I type to my boxes is su -.

Question: how do I make vagrant ssh use the root user by default?

Version: vagrant 1.6.5

Answer

Ed Williams picture Ed Williams · Jan 16, 2015

This is useful:

sudo passwd root

for anyone who's been caught out by the need to set a root password in vagrant first