We have a local development server with Ubuntu 14.04. We use SFTP with vsftp, and Git.
Some coworkers have access over SFTP (without ssh access,
/usr/bin/nologin and sftponly group), and other coworkers have access to Git host (different username, shell as
I want to create the following environment: SFTP access for web front-end developer (external coworkers) and Git access (over ssh://) for our back-end developer (internal or external coworkers).
SFTP user is chrooted, and this works perfectly.
The Problem is with Git - if users have access via ssh:// to the git repository they at the same time have access for all system directories via SFTP.
How to use SFTP and Git in the same system without SFTP access for Git users?
PS. I read almost whole Google results, but solutions don't work or are so old or advise turn off SFTP.