sshd can't change the working directory to the user's home directory because it doesn't exist. It therefore leaves the working directory set to /. You assigned this user the home directory /home/sftp/allu. But then you chroot the user to /home/sftp. That means that relative to the chroot, that directory is at /allu! Not /home/sftp/allu. You need to know that ...


how can I do a push with git ansible module ? The built in git module doesn't have that functionality. It is focused pulling down code so it can be built.

Only top voted, non community-wiki answers of a minimum length are eligible