Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
VGSources
Blog

How to Set Up FTPS on Ubuntu for WordPress Uploads

A practical guide to running explicit FTPS with vsftpd for WordPress uploads on Ubuntu, including TLS certificates, chrooted accounts, passive ports, permissions, WordPress settings, and troubleshooting.
Length11 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To set up FTPS for WordPress on Ubuntu, install and isolate vsftpd, create a dedicated account, restrict that account to the WordPress directory it needs, install a certificate issued for the server’s hostname, force TLS for both login and file transfers, open a narrow passive-port range in every firewall, and then select FTPS (not plain FTP) in the WordPress filesystem client. Test a listing, upload, and download before relying on the connection.

FTPS is FTP protected by TLS. It is not the same protocol as SFTP, which runs as a file-transfer session over SSH. If secure transfer is the only requirement, Ubuntu recommends considering OpenSSH/SFTP; FTPS is appropriate when FTP compatibility, an existing FTP workflow, or a client that explicitly supports FTP over TLS is required.

As an Amazon Associate I earn from qualifying purchases.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What you are building

An FTPS WordPress arrangement has several separate pieces that must agree:

  • vsftpd: the Ubuntu FTP server that accepts the connection.
  • TLS: encryption for authentication and file data, using a certificate and private key for the server’s hostname.
  • A restricted account: a non-root identity whose home or chroot leads to the WordPress files it must transfer.
  • WordPress permissions: ownership or group access limited to the upload directory or other paths that genuinely require writing.
  • Passive networking: a control connection plus a deliberately selected range of data ports allowed through UFW, cloud security groups, NAT, and perimeter firewalls.
  • A matching client configuration: FTPS/FTPES mode, the correct control port, passive mode, hostname, username, and password.

A successful password exchange does not prove the setup works. FTP uses a separate data connection for directory listings, uploads, and downloads, so a server can authenticate correctly while every useful operation hangs.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

FTPS and SFTP are different protocols

Ubuntu describes FTPS as FTP encrypted with TLS. SFTP is an FTP-like session carried over an encrypted SSH connection. They have different ports, security administration, firewall behavior, and client compatibility.

Area FTPS SFTP
Underlying protocol FTP with TLS added to the control and data channels SSH file-transfer subsystem; not FTP
Typical administration Host certificate and private key, TLS policy, FTP account and passive range SSH host keys and user authentication, commonly password or SSH key
Firewall model Control connection plus a negotiated data connection; passive ranges must be opened Normally one SSH service and one connection, so there is no FTP passive range
Client selection The client must explicitly choose FTP over TLS (often labelled FTPS or FTPES) The client must explicitly choose SFTP
Best fit Existing FTP-compatible workflows or systems that require FTP over TLS Transfers where secure SSH-based access is the only requirement

Do not enter an SFTP URL or SSH port into an FTPS profile. Conversely, changing an FTPS profile to SFTP is not a cosmetic security upgrade: it selects another server protocol and authentication path. Ubuntu’s guidance specifically recommends considering OpenSSH/SFTP when the requirement is simply secure file transfer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prerequisites and a safe account design

Confirm the actual WordPress location

Before editing the FTP server, identify the document root and the WordPress installation below it. The usual media destination is wp-content/uploads, but a site may be installed in a subdirectory or use a different content directory. The account’s home, chroot, and writable path must be based on the real layout, not an assumed location.

Use a dedicated, non-root identity

Create a transfer account used only for this site or transfer job. Never use root for WordPress uploads. A dedicated identity makes it possible to revoke access, inspect ownership, and limit the damage if credentials are exposed. Its home directory or chroot should lead to the intended site directory rather than to the entire filesystem.

Decide whether the account uses a nologin shell

A service account may be configured with a non-interactive shell such as /usr/sbin/nologin. Ubuntu notes that PAM can require the account’s shell to appear in /etc/shells. If authentication is rejected for an otherwise correct account, check that relationship. Add the nologin shell to /etc/shells only when that account design is intentional; do not weaken shell policy merely to make a login succeed.

Install vsftpd and isolate the service

Install the Ubuntu FTP daemon with:

sudo apt install vsftpd

After installation, keep the service limited to authenticated local users and configure chroot behavior for the account’s intended home or site directory. Ubuntu documents the chroot_local_user setting and the chroot-list controls. The exact combination depends on whether all local users or only a selected list should be jailed, so choose one policy deliberately rather than enabling contradictory exceptions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Record the account home and the path visible inside the chroot. A WordPress client will resolve its remote path from that view. If the account is chrooted at the site directory, the client may see wp-content/uploads; if it is chrooted one level higher, the same directory will have a different remote path. This distinction explains many “directory not found” reports after a technically successful login.

Apply least-privilege WordPress permissions

WordPress hardening guidance recommends locking permissions down and loosening them only when a feature such as uploads requires write access. Give the transfer account ownership or group access only to the exact upload path and any additional directories required by the workflow.

Choose ownership or a shared group

  • Ownership: make the dedicated transfer account the owner of the required directory when it is the only process that needs to write there.
  • Shared group: place the web-server identity and transfer account in a controlled group when both must access the same files, then grant group permissions only on the required paths.
  • Parent directories: ensure the account can traverse each parent directory without making unrelated site directories writable.

Inspect the full path, not just the final directory. A write failure can come from a parent directory lacking execute (traverse) permission, from files owned by another identity, or from the account being chrooted somewhere different from the path you tested.

Avoid broad recursive write permissions across the whole WordPress tree. Making every file and directory writable may hide a local ownership mistake, but it also allows a compromised transfer credential to alter themes, plugins, configuration, and executable files that do not need upload access.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Enable explicit FTPS with a host-specific certificate

Edit /etc/vsftpd.conf and enable TLS for local users and data transfers:

ssl_enable=YES
rsa_cert_file=/path/to/host-specific-certificate.pem
rsa_private_key_file=/path/to/private-key.pem
force_local_logins_ssl=YES
force_local_data_ssl=YES

The certificate must be generated or issued for the specific hostname clients use. Ubuntu’s production guidance says to replace the default snakeoil certificate; a generic default certificate can produce hostname or trust warnings and does not identify the intended server to a client. Protect the private-key file with permissions that prevent ordinary users from reading it.

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

Force encryption on both channels

force_local_logins_ssl=YES prevents local-user credentials from being sent through an unencrypted login. force_local_data_ssl=YES applies the same requirement to directory listings, uploads, and downloads. Enabling TLS only for authentication leaves the data channel exposed to a separate downgrade or interception risk and does not meet the goal of an encrypted WordPress transfer.

Prefer explicit FTPS (FTPES)

Explicit FTPS starts with the normal FTP workflow and upgrades the connection to TLS. Unless a client or policy specifically requires another mode, use explicit FTPS/FTPES. Implicit FTPS is a different mode in which TLS is expected immediately; port 990 is commonly associated with it, while explicit FTPS commonly uses the normal FTP control port 21. The current vsftpd documentation exposes implicit behavior separately through implicit_ssl. A client asking for port 990 may therefore be requesting implicit FTPS rather than indicating that port 21 is broken.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep obsolete SSL protocols disabled

Do not enable SSLv2 or SSLv3 to accommodate an old client. The current Ubuntu vsftpd documentation states that TLS 1.2 and TLS 1.3 are enabled by default in the documented version and prefers TLS 1.2 or newer. Upgrade or replace an outdated client instead of weakening the server’s protocol policy.

Configure passive mode and every firewall

FTP’s control connection and data connection are separate. In passive mode, the client connects back to a server-selected port for a listing or transfer. Pick a narrow, unused range and set it in /etc/vsftpd.conf. For example:

pasv_min_port=12000
pasv_max_port=12100

The range above is an example configuration, not a universal requirement. Keep it as small as your expected concurrency permits, reserve it for vsftpd, and open the identical range wherever traffic is filtered.

Open the control and passive ports

For explicit FTPS, allow TCP port 21 and the selected passive range in UFW:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
sudo ufw allow 21/tcp
sudo ufw allow 12000:12100/tcp

Repeat the policy in the cloud security group, host or perimeter firewall, and any load-balancer rule. Opening port 21 alone permits login but not the data channel. If you choose another control port, use that port consistently in vsftpd, UFW, security groups, and the client.

Handle NAT and advertised addresses

When Ubuntu is behind NAT, the server must advertise the public address that clients can reach, and the passive range must be forwarded to the server. A private address in the passive response causes clients outside the network to wait for an unroutable destination. Verify both the address and the port forwarding; changing only the firewall rules does not correct a wrong advertised address.

Restart and validate the service

After saving the configuration, restart vsftpd:

sudo systemctl restart vsftpd

Inspect the service status and logs immediately. Then use an FTPS-capable client configured for passive mode and validate each operation separately:

  1. Connect to the server hostname on the selected explicit-FTPS control port.
  2. Confirm that the client reports a TLS negotiation for the login, and inspect whether the certificate matches the hostname.
  3. List the account’s starting directory.
  4. Change to the intended WordPress path, such as wp-content/uploads relative to the account’s chroot.
  5. Upload a small, harmless test file.
  6. Download that file and compare the result.
  7. Delete the test file using the same account if the workflow permits deletion.

Test from a network outside the server’s local subnet when NAT, a cloud security group, or a perimeter firewall is involved. A local test can succeed while outside clients still cannot reach the passive ports.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Configure WordPress to use FTPS

WordPress’s WP_Filesystem_FTPext implementation accepts the method value ftps for SSL and accepts an FTP server port. In the WordPress filesystem or update setup, explicitly choose FTPS/FTP over TLS rather than plain FTP. Supply:

  • the server hostname covered by the certificate;
  • the explicit FTPS control port, normally 21 unless you deliberately changed it;
  • the dedicated username and password;
  • passive mode;
  • the remote path as seen inside the account’s chroot.

Do not assume that a field labelled “FTP” automatically enables TLS. The filesystem method and client mode must explicitly be ftps. If WordPress says credentials are required, reports that no filesystem method is selected, or connects but cannot perform an upload, check the method, port, account home, and passive reachability before changing permissions.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Troubleshoot by symptom

Login succeeds, but a listing or upload hangs

This is usually a passive-data-path problem rather than a password problem. Confirm that:

  • pasv_min_port and pasv_max_port match the range opened in UFW and every upstream firewall;
  • the cloud security group allows the same TCP range;
  • NAT forwards the range to the Ubuntu host;
  • the server advertises a reachable public address;
  • the client is set to passive mode;
  • the client is using the same explicit or implicit FTPS mode configured on the server.

Authentication is rejected for an account using nologin

Check whether PAM requires the configured shell to appear in /etc/shells. Ubuntu specifically calls out this interaction. Add /usr/sbin/nologin there only if the account is intentionally non-interactive, then retry authentication and inspect the logs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

WordPress connects but cannot write

Inspect ownership and permissions on the exact target path and every parent directory visible inside the chroot. Confirm that the account has write access to the uploads directory, not merely read access to the site root. Correct the narrowly scoped ownership or group membership instead of granting write permission recursively across WordPress.

The client reports a certificate or protocol error

Verify that the certificate is for the hostname entered in the client, that the private-key path is correct and readable by vsftpd, and that the client supports modern TLS. Replace the default snakeoil certificate with a host-specific certificate. Do not re-enable obsolete SSL protocols just to make an old client connect.

A client insists on port 990

Determine whether the profile is requesting implicit FTPS. Explicit FTPES and implicit FTPS are different modes. Select the mode that matches the server configuration; changing only the port leaves the negotiation incompatible.

The remote path appears empty or is not found

Remember that chroot changes the path the client sees. Recalculate the path relative to the account’s chroot, then verify that the account can traverse the directory and that the WordPress installation is actually located there.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Self-managed vsftpd or managed hosting

Running vsftpd on your own Ubuntu server gives direct control, but it also makes you responsible for every layer that affects an upload. A managed WordPress or managed Ubuntu service can remove some of that operational work, but the provider’s access controls, supported transfer methods, and troubleshooting process become part of the design.

Responsibility Self-managed vsftpd Managed service
Daemon installation and updates You install vsftpd and apply Ubuntu security updates and configuration changes. The provider normally handles the platform and service maintenance, subject to its plan and support scope.
TLS certificate You obtain, install, renew, and monitor the host-specific certificate and private key. The provider may automate certificates, but you must verify hostname coverage and renewal behavior.
Passive networking You choose the range and coordinate UFW, security groups, NAT, and perimeter rules. The provider may hide or manage these layers, but you have less control over their exact limits.
Account isolation You define chroot behavior, shells, ownership, groups, and WordPress write scope. The provider supplies its own isolation model; confirm that the account can be limited to the intended site.
Support burden You diagnose logs, TLS negotiation, paths, permissions, and firewall behavior. Support may investigate platform issues, but FTPS availability and WordPress filesystem configuration still need to be specified.

Choose self-management when you need control over the daemon, certificate policy, account isolation, and network rules and can maintain them. Choose a managed option when maintaining TLS, passive firewall ranges, patching, and permissions is outside your team’s operational capacity. In either case, insist on least-privilege WordPress write access.

Operational checklist

  • vsftpd is installed and starts successfully.
  • The transfer identity is dedicated, non-root, and restricted to its intended home or chroot.
  • The account’s shell policy is deliberate, including any /etc/shells requirement for nologin.
  • The WordPress upload path has only the ownership or group permissions it needs.
  • ssl_enable=YES is set.
  • rsa_cert_file and rsa_private_key_file point to a certificate and key for the hostname clients use.
  • force_local_logins_ssl=YES and force_local_data_ssl=YES are enabled.
  • SSLv2 and SSLv3 are not enabled; clients support modern TLS.
  • The passive range is configured in vsftpd and allowed in UFW, security groups, NAT, and perimeter firewalls.
  • The server advertises a reachable public address when NAT is present.
  • The client uses explicit FTPS/FTPES, passive mode, the correct port, and the chroot-relative path.
  • A listing, small upload, and download have each been validated and logs are available for failures.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.