What have I done wrong?

I completed the task Install And Configure SFTP, but I got failed.

below the screens:
The user only could log in just via sftp:

I could log in via sftp normally.

@Inderpreet kindly reminder


Did you test if user was able to SSH or not ? Also after login into SFTP it should not land in / directory which indicates that the configuration wasn’t correct.

you were right I forgot to configure the ssh permissions