My SFTP Task got failed, did i missed anything?
grep sftp /etc/ssh/sshd_config
Subsystem sftp /usr/libexec/openssh/sftp-server
replaced with below lines:
Subsystem sftp internal-sftp
Match User jemes
systemctl restart sshd.service
The name of the user is incorrect in the sshd_config ,ie, its ‘jemes’ instead of ‘james’. Did you also setup the shell for the user such that he wont be able to login ? because according to the error , he is still allowed to login . Can you show the contents of passwd entry for this user ?