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;
groupadd sftp_users
useradd kareem
passwd kareem
usermod -G sftp_users kareem
id kareem
mkdir -p /var/www/appdata
chmod 2775 /var/www/appdata
chown :sftp_users /var/www/appdata
vi /etc/ssh/sshd_config
Subsystem sftp internal-sftp
Match Group sftp_users
X11Forwarding no
AllowTcpForwarding no
ChrootDirectory /var/www/appdata
ForceCommand internal-sftp
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.