How to connect to WordPress using sFTP on CentOS
|DIFFICULTY strong>||Basic - 1 | Medium - 2 | Advanced - 3|
|TIME REQUIRED strong>||30 min|
|RELATED PRODUCTS strong>||CentOS-based VPS or dedicated servers|
Here is one approach to connect to a self-hosted WordPress install using SFTP.
Install the FTP client
This example uses Filezilla, a popular FTP client for Linux-based operating systems such as CentOS.
Download the appropriate tar file for Filezilla using a wget command similar to the following:
Extract the individual files from the above tar file with this command:
Remove any existing files from the /opt/filezilla folders:
Move the FileZilla3 files that you previously extracted to the /opt/filezilla folder:
Create a symbolic link between the /bin/filezilla folders:
Start Filezilla with the filezilla command.
Connect to the WordPress account with Filezilla
Click the icon under the File menu item to display the site manager. Click on the New Site button to create a new connection and label it something like SFTP Site. Enter the IP address or the URL for your WordPress host, which is localhost for this example. Enter the host's port number for SFTP connections, which is 22 by default. Select SFTP as the protocol and then select a normal logon type for most WordPress hosts. Enter your user name (testuser for this example) and its password for the host.
Click on the Advanced tab. Enter the name of your WordPress directory on the host, which is /var/www/html/wordpress/wp-admin for this example.
Click the Connect button, and wait for Filezilla to connect to your WordPress host.
Note the contents of your WordPress directory in the Remote Site window.