我成功地用Wordpress建立了一个VPS LEMP堆栈.当我尝试从WP后端安装插件时,系统会提示我以下消息:
To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.
当我输入我用于使用FileZilla访问服务器的SFTP帐户详细信息时,收到以下错误消息:
Failed to connect to FTP Server 192.XXX.XXX.X:21
我阅读了各种 教程,建议安装FTP服务器,特别是vsftpd,然后将你的FTP用户详细信息存储在wp-config.php中,以避免进一步的身份验证请求.我看到的问题是,FTP被认为是非常不安全的,我想避免将我的用户详细信息硬编码到我的WP安装中.
处理这个问题最安全,最推荐的方法是什么?