how can I allow an user to ssh to my server with limitation to a shell command and a directory?
I\'m using git to dep
You should consider gitolite, which is an authorization layer which can ssh forced command.
And ssh forced command is there precisely to limit ssh to one unique command (in the case of gitolite, a script which will control access right, and make sure only git commands are executed).
Even if you don't use gitolite, ssh forced command alone (not linked to git at all) is still interesting to consider, in order to control and limit what a user can do through an ssh session.
The OP Tarzan, who didn't want to install another service, installed another service (Ishell), which is precisely based on ssh forced command ;)