I need to add an SFTP user to a droplet with Apache with access to the /var/www/html directory only.
On this droplet password authentication is disabled and the ufw firewall is active.
The goal is to give temporary access to a WordPress plugin developer for troubleshooting and later revoke their access — all without reducing the security of the server.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.