Auto-deploy your generated static site via sFTP protocol.

Installation

Configuration

via UI

Input your sFTP connection settings via the WP2Static > sFTP menu.

via WP-CLI

wp wp2static sftp options set name value

Available optionExample input
dir_permissions0755
file_permissions0755
groupgroup
hostexample.com
owneruser
passphrasepassphrase-for-privateKey
passwordpassword
port22
private_keypath/to/privatekey
remote_root/path/to/root
usernameusername

Troubleshooting

  • check WP2Static’s Logs for any errors
  • check webserver/PHP’s error logs on server
  • check sFTP logs on server
  • test your sFTP credentials:
    • via CLI: sftp user@host (do this from your webserver to confirm certificates)
    • via GUI with FileZilla
  • test with a fresh sFTP server:
    • docker run -p 2222:22 -d atmoz/sftp user:pass:::dir