Safe production deploys over SSH

Hardening notes for shipping a WordPress blog to a VPS with a restricted deploy helper.

Least privilege

Give the SSH account passwordless sudo only for a single helper binary. That helper owns backups, staging directories and rsync into wp-content.

Warning: Deploying as root works, but a dedicated deploy user is safer long term.

Smoke test

sudo -n /usr/local/sbin/lownkey-deploy-helper wp core version

One response

  1. Using a dedicated deploy helper instead of broad sudo is the right call.

Leave a Reply

Your email address will not be published. Required fields are marked *

About

Editor · LowNKey

Practical notes on technology, WordPress, and shipping careful infrastructure.

Topics index