Information Technology Reference
In-Depth Information
You can also use any other ssh client to access the virtual system. It can be a typical
ssh client available in your shell. You can run:
# Host OS (e.g., Windows, Linux, OS X)
$ ssh -p2222 vagrant@127.0.0.1
and use the following credentials:
username: vagrant
password: vagrant
Right now, you will need to use a password. Later, in Recipe 11-5 I will show you
how to avoid typing passwords using RSA keys. There you will also learn how to con-
figure your SSH client.
Accessing root's account
By default, the root's account in your virtual machine is locked. To access it you need
to run the $ sudo su command. You also can unlock the account with the following
procedure:
1. Set a new password for root with:
# Guest OS (Ubuntu 12.04)
$ sudo passwd root
2. Unlock the root's account with:
# Guest OS (Ubuntu 12.04)
$ sudo passwd -u root
3. Switch to root's account with:
# Guest OS (Ubuntu 12.04)
$ su
You have to run all the above commands within the ssh session, as indicated by #
Guest OS (Ubuntu 12.04) comments.
Search WWH ::




Custom Search