Information Technology Reference
In-Depth Information
you will see the error message:
fatal: Interactive git shell is not enabled.
That's how we restrict the access to the git account. Because the account uses the in-
terpreter /usr/bin/git/git-shell no one can log into this account using the
ssh or the $ sudo su git command.
Hint You can weaken the restrictions imposed by git-shell by creating a direct-
ory /git-shell-commands . If this directory contains shell scripts then you will
be allowed to open the ssh connection to this account and execute this script. Both the
directory and the shell script should have r and x permission.
Peter's account is an ordinary user account. It is used by one of the developers for
his or her daily work. You log on to this account using two methods:
# SSH connection to peter's account - first method
# Guest OS (Ubuntu 12.04)
# Commands executed by vagrant user
$ sudo su peter
$ cd
or:
# SSH connection to peter's account - second method
# Host OS (e.g., Windows, Linux, OS X)
$ ssh -p2222 peter@localhost
It doesn't really matter which method you choose.
Every time a new developer wants to join the team the following tasks should be
done:
• The developer has to generate his or her RSA keys.
• The developer has to send his public key to the administrator.
• The administrator has to append the developer's public key to the
/home/git/.ssh/authorized_keys file.
Search WWH ::




Custom Search