To be used with /etc/ssh/sshd_config ForceCommand.
Requirements:
- Read access to /var/log/auth.log
- Read and write access to a nginx config file
- Background process that automatically reloads the nginx config file (https://www.justinsilver.com/technology/linux/nginx-configuration-monitor/)
- LogLevel DEBUG in /etc/ssh/sshd_config
- Update config file location in line 180 and hostname in line 189
Example usage: