I had a client who wanted to use his webspace to host his git repositories.
He was set up on a Plesk server that was was shared with other clients and his SSH access was limited to /bin/bash (chrooted) access. When he tried to push a repository to his webspace, he received an error stating "Can't connect to any repository: push not permitted".
The problem occured due to the git commands not being available in the chrooted shell.
The update-chroot.sh script had previously been installed on the server, following the instructions at https://support.plesk.com/hc/en-us/articles/12377962235159-How-to-add-programs-to-chrooted-shell-environment-template-in-Plesk, but had not been configured for git access.
To change the configuration and allow access to git, the following commands were run as root:
cp -a /etc/resolv.conf /var/www/vhosts/chroot/etc/
cd /var/www/vhosts/chroot
./update-chroot.sh --add /bin/basename
./update-chroot.sh --add /bin/sed
./update-chroot.sh --add /bin/uname
./update-chroot.sh --add /bin/tr
./update-chroot.sh --add /bin/git
./update-chroot.sh --add /usr/bin/git-receive-pack
./update-chroot.sh --add /usr/bin/git-shell
./update-chroot.sh --add /usr/bin/git-upload-archive
./update-chroot.sh --add /usr/bin/git-upload-pack
./update-chroot.sh --apply <domainname>
After this update, the client was able to connect Eclipse eGit to the repositories stored in his webspace.