Information Technology Reference
In-Depth Information
Creating the git and peter accounts
Create a new user with:
# Guest OS (Ubuntu 12.04)
# as vagrant user
$ sudo adduser --gecos Git git
$ sudo adduser --gecos Peter peter
Configuring a git and RSA key for the vagrant user
Configure the git settings for the vagrant user:
# Guest OS (Ubuntu 12.04)
# as vagrant user
$ git config --global user.name vagrant
$ git config --global user.email vagrant@localhost
Generate the ssh key for the vagrant user on your guest machine
# Guest OS (Ubuntu 12.04)
# as vagrant user
$ ssh-keygen -t rsa -C vagrant@localhost -N "" -f .ssh/
id_rsa
Copy vagrant's public key to the home directory of the git account:
# Guest OS (Ubuntu 12.04)
# as vagrant user
$ scp /.ssh/id_rsa.pub git@127.0.0.1:admin.pub
Use git account's password to complete the above command.
Configuring a git and RSA key for the peter user
Switch to peter's account:
Search WWH ::




Custom Search