I have configured SFTP and tested the user is able to connect SFTP from Jumpserver but the task is still marked as failed.
I have performed below mentioned steps;
usermod -G sftp_users kareem
mkdir -p /var/www/appdata
chmod 2775 /var/www/appdata
chown :sftp_users /var/www/appdata
Subsystem sftp internal-sftp
Match Group sftp_users
systemctl restart sshd
From the Jump Server, I am able to connect and I also created a folder in the chroot directory and it is working as expected.
Can anyone tell me what is wrong. The user is able to connect still the task is showing as Failed.