For short periods of time (generally measured in seconds or minutes), I need to enable ftp (vsftpd
) access on a webserver hosting WordPress so that plugins, themes, etc can be updated via the WP administrative dashboard.
Currently, I initiate an ssh session, enable vsftpd
, run the update from wordpress, disable vsftpd
, and logout.
Such maintenance activities are done on an ad hoc basis, as and when updates are made available - and not necessarily on a specific maintenance cycle (for exploit/bug fixes, new features, etc).
What would be some viable routes to automate the enabling and disabling of the ftp server in this scenario?