Welcome to my YouTube channel! In this video, I’ll show you how to configure an SFTP server on Red Hat Enterprise Linux server using Ansible.
This video is part of a series meant to help people who are studying automation using Ansible to get a clear idea on what can be done with Ansible in a more practical way.
Regarding user robert which have read only permission on the folder of smith.
You must modify the /etc/ssh/sshd_config file and add the code bellow to avoid that user to have access to the entry File System Hierarchy of my server.
Match User {{ sftp_ro_user }}
ChrootDirectory /data/{{ sftp_rw_user }}
This will allow to restrict the sftp_ro_user precisely in the case of this video the user robert to go outside of the /data/smith directory.
If you’re interested in learning more about Linux, be sure to subscribe to my channel for regular updates and tutorials!
https://bit.ly/YvesKipondo