How to Setup SFTP on CentOS/RHEL/Amazon Linux 2

All actions will also be relevant for CentOS/RHEL systems. In this example, a user will be added for access via SFTP using an SSH key to the web directory under Apache management. There is a default for Apache group “apache”, if necessary, replace the desired one.