Information Technology Reference
In-Depth Information
# Guest OS (Ubuntu 12.04)
# as vagrant user
$ sudo su - peter
Configure the git settings for the peter user:
# Guest OS (Ubuntu 12.04)
# as peter user
$ git config --global user.name peter
$ git config --global user.email peter@localhost
Generate the ssh key for the peter user on your guest machine
# Guest OS (Ubuntu 12.04)
# as peter user
$ mkdir .ssh
$ ssh-keygen -t rsa -C vagrant@localhost -N "" -f .ssh/
id_rsa
Copy peter's public key to the home directory of the vagrant account:
# Guest OS (Ubuntu 12.04)
# as peter user
$ scp /.ssh/id_rsa.pub vagrant@127.0.0.1:peter.pub
Use the vagrant account's password to complete the above command.
Close Peter's shell:
# Guest OS (Ubuntu 12.04)
# as peter user
$ exit
Configuring gitolite for the git account
Log in as a git user with:
Search WWH ::




Custom Search