Securely Publish Hugo via rsync
- POST
Steps 1. Install rssh Install rssh to limit shell activity for users using the shell rssh:
sudo apt-get install rssh Now edit the config file /etc/rssh.conf to allow scp and rsync:
allowscp allowrsync #allowsftp #allowcvs #allowrdist #allowsvnserve NOTE: Since you are going through SSH, you don’t need to enable firewall rule for rsync.
# DO NOT RUN this: sudo ufw allow rsync # You can safely run this: $ sudo ufw delete allow rsync 2.