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 DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

How to Configure ProFTPD to Use SFTP Instead of FTP

A practical ProFTPD SFTP guide covering mod_sftp, virtual hosts, ports, host keys, RFC4716 public keys, migration testing, and disabling FTP safely.
Length9 min Posted Quest giverVGSources Team

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.

To run SFTP through ProFTPD, load mod_sftp, create a dedicated SFTP <VirtualHost>, assign it a port (normally 22), enable SFTPEngine on, and configure the required host keys. You can leave FTP on port 21 while testing, or deny logins in the main server context and allow them only in the SFTP virtual host when the migration is complete.

SFTP and FTPS are not interchangeable settings: SFTP is carried by SSH2 through mod_sftp, while FTPS is the existing FTP protocol protected with SSL/TLS. That protocol difference determines the listener, firewall, authentication, and client configuration you need.

As an Amazon Associate I earn from qualifying purchases.

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

What changes when ProFTPD serves SFTP

ProFTPD does not turn an FTP listener into SFTP merely by changing a security option. SFTP is an SSH2 subsystem implemented by the mod_sftp module. It uses one SSH transport, whereas ordinary FTP and FTPS use an FTP control connection plus separate data connections.

This distinction affects more than the name shown in a client. An SFTP service needs an SSH/SFTP port and SSH host keys. A client configured for FTP or FTPS will not speak the SFTP protocol successfully, even if it points at the same server address.

#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.
Characteristic SFTP with ProFTPD FTPS
Protocol stack SSH2, provided by mod_sftp FTP with SSL/TLS protection
Connection model One SSH transport carrying file operations FTP control and data channels
Typical listener Port 22, or another selected SSH/SFTP port The existing FTP listener and its FTP data-channel design
Host identity SSH host keys configured with SFTPHostKey FTP service certificate and TLS settings
Authentication ProFTPD authentication plus optional public-key authorization through SFTPAuthorizedUserKeys FTP authentication protected by TLS
Client requirement An SFTP-capable client An FTPS-capable FTP client

Use the SFTP procedure below when clients must connect with an SFTP protocol. If your requirement is only to encrypt existing FTP transfers while retaining FTP behavior, you are describing FTPS instead and should not apply this SFTP listener design.

Before you edit the configuration

Verify that mod_sftp is available

The installed ProFTPD build must include mod_sftp, and the module must be loaded. If it is absent or not loaded, directives such as SFTPEngine and SFTPHostKey will not provide an SFTP service. Check the module arrangement used by your operating system package or ProFTPD build before writing the virtual host.

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

Choose a port deliberately

A common arrangement keeps ordinary FTP on port 21 and places SFTP on port 22. Port 22 must be free for ProFTPD; it cannot be occupied by another SSH service bound to the same address and port. If another service already owns it, select a documented alternate port and configure every SFTP client and firewall rule to use that port.

Collect the host keys and logging path

SFTPHostKey is required. The recommended approach is to reuse the host-key files already used by the OpenSSH server. Using different keys for what clients consider the same server can make a client report that the host identity has changed.

Choose an SFTPLog path before enabling the service. The directory must exist and be writable by the ProFTPD daemon; otherwise connections may fail or the service may start without useful SFTP diagnostics.

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

Build a separate SFTP virtual host

SSH2/SFTP needs a different listening port from ordinary FTP, so place it in its own virtual host. The same address can have multiple ProFTPD virtual hosts when their Port directives differ.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
# Existing FTP listener
DefaultAddress 203.0.113.10
Port 21

<IfModule mod_sftp.c>
  <VirtualHost 203.0.113.10>
    Port 22
    SFTPEngine on
    SFTPLog /etc/proftpd/sftp/sftp.log

    # Reuse the host keys used by OpenSSH
    SFTPHostKey /etc/ssh/ssh_host_rsa_key
    SFTPHostKey /etc/ssh/ssh_host_ecdsa_key
    SFTPHostKey /etc/ssh/ssh_host_ed25519_key

    # Per-user public-key authorization example
    SFTPAuthorizedUserKeys file:~/.sftp/authorized_keys
  </VirtualHost>
</IfModule>

Adapt the address and paths

Replace 203.0.113.10 with the server address on which ProFTPD should listen. Keep the existing FTP listener only if you intentionally want both protocols available during a transition or as a permanent arrangement.

Every SFTPHostKey path must point to a readable private host-key file. The example lists RSA, ECDSA, and Ed25519 keys; use the host-key files that actually exist on your system and that correspond to the OpenSSH identity clients already know.

The file:~/.sftp/authorized_keys form is a per-user public-key authorization example. It tells mod_sftp where to look for each user’s authorized public keys. If you use password authentication instead, retain the normal ProFTPD authentication configuration and omit this directive unless you also want key-based access.

Why the host keys must match OpenSSH

Host keys identify the server to SFTP clients. Reusing the OpenSSH keys means a client sees a consistent identity when the same address is used for SSH and SFTP. Assigning unrelated keys can trigger a host-key-change warning, which clients correctly treat as a possible security problem. Do not solve that warning by casually deleting a client’s known identity; first confirm that the configured ProFTPD keys are the intended OpenSSH keys.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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)

Configure SFTP authentication

Password authentication

ProFTPD SFTP can use the authentication setup already applied to the ProFTPD service. Keep the existing account, password, and access-control design, then test it through an SFTP client on the new port. A successful FTP login does not by itself prove that an SFTP login is permitted, because the protocol listener and virtual-host rules can differ.

Public-key authentication

For per-user keys, configure SFTPAuthorizedUserKeys in the SFTP virtual host. The directive in the example uses each account’s ~/.sftp/authorized_keys file.

When importing an OpenSSH public key for this directive, convert it to RFC4716 format with:

ssh-keygen -e -f ~/.ssh/id_rsa.pub -m RFC4716

Place the converted key in the authorization file selected by SFTPAuthorizedUserKeys. Repeat the process for each account that should use key authentication, and keep the authorization file associated with the correct user.

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

Separate host authentication from user authorization

SFTPHostKey authenticates the server to the client; SFTPAuthorizedUserKeys authorizes a user’s public key. They solve different problems and are both easy to misconfigure. A correct user key cannot compensate for a missing required host key, and a correct host key does not grant a user access without a permitted authentication method.

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

Keep FTP temporarily or make ProFTPD SFTP-only

Running both services during migration

Leaving the main FTP listener on port 21 while adding the SFTP virtual host is useful when clients need time to move. Tell each client to select SFTP, the SFTP server address, and the selected SFTP port. Do not assume that changing only the port in an FTP profile changes its protocol; the client profile must explicitly use SFTP.

Test all required accounts over SFTP before removing FTP. Include automated jobs, game-server transfers, backup tasks, and any other integrations that may not be visible in an interactive user inventory.

Deny logins globally, then allow them only in SFTP

When FTP must be removed rather than run alongside SFTP, use a global login denial and an exception for the SFTP virtual host:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
<Limit LOGIN>
  DenyAll
</Limit>

<VirtualHost 203.0.113.10>
  <Limit LOGIN>
    AllowAll
  </Limit>
  Port 22
  SFTPEngine on
  # host keys, logging, and authentication directives here
</VirtualHost>

The main-server DenyAll prevents logins through the default context. The nested AllowAll re-opens login permission only inside the SFTP virtual host. Keep the SFTP host-key, log, and authentication directives in that virtual host, as shown in the earlier configuration.

Audit included files and other virtual hosts

The deny/allow pattern is effective only if the rest of the configuration agrees with it. Review existing virtual hosts and included configuration files for an FTP listener or a broader AllowAll rule that could leave an unintended login path active. A configuration include can reintroduce an FTP service even when the main file appears SFTP-only.

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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Apply the change safely

  1. Confirm the module. Verify that the running ProFTPD installation includes and loads mod_sftp.
  2. Reserve a port. Use 22 if it is not already occupied by another SSH service on the selected address; otherwise choose and document an alternate port.
  3. Create the virtual host. Add the SFTP <VirtualHost> with its distinct Port and set SFTPEngine on.
  4. Add host keys. Set the required SFTPHostKey directives to the same key files used by OpenSSH.
  5. Enable logging. Set SFTPLog and verify that its directory is writable by the ProFTPD daemon.
  6. Choose authentication. Use the existing ProFTPD password arrangement, public keys through SFTPAuthorizedUserKeys, or both. Convert OpenSSH public keys to RFC4716 when required.
  7. Test before decommissioning FTP. Connect with an SFTP client against the selected address and port, authenticate with a representative account, list a directory, upload a test file, and retrieve it.
  8. Switch to replacement mode. If FTP is no longer needed, apply the global DenyAll and SFTP-virtual-host AllowAll pattern, then disable or remove the old FTP listener after client access is confirmed.

Firewall and client details to communicate

An SFTP migration changes the network endpoint clients use. Give users the server address, the exact SFTP port, the username, and whether they should authenticate with a password or a private key. If you selected an alternate port, state it explicitly; clients commonly assume port 22 for SFTP.

Open the selected port in the server’s firewall and any upstream network controls. If FTP remains available during migration, treat port 21 as a separate service and decide whether it should be reachable at all. Once the SFTP-only policy is active, a reachable FTP port should not provide a usable login path.

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

Troubleshoot the most common failures

Symptom Likely configuration issue What to check
The client cannot connect to the selected port The port is occupied, blocked, or not bound by the SFTP virtual host Confirm that the chosen port is free, that the virtual host uses it, and that network controls permit it.
The service starts but SFTP is unavailable mod_sftp is missing or not loaded, or SFTPEngine is not enabled in the intended virtual host Verify module loading and the exact virtual-host context containing SFTPEngine on.
Startup or connection errors mention host keys SFTPHostKey is missing, points to an invalid path, or cannot be read Check that the required directive is present and that each path refers to the intended OpenSSH private host-key file.
Clients report that the server identity changed ProFTPD is presenting keys different from the OpenSSH keys clients previously trusted Configure the same OpenSSH host-key files with SFTPHostKey, then follow your client’s normal verified host-key update process.
Password login is rejected while FTP login works The SFTP virtual host is using different login limits or authentication context Inspect the virtual-host authentication settings and any <Limit LOGIN> rules that apply to it.
A public key is ignored The key is in the wrong format or location Convert an OpenSSH public key with the RFC4716 command, place the result in the file named by SFTPAuthorizedUserKeys, and verify the per-user path.
No useful SFTP log is produced The log directory is absent or not writable by the daemon Check the SFTPLog path and its directory permissions for the ProFTPD service account.
FTP still accepts logins after the migration An old listener or included virtual host remains active, or a broader login rule overrides the intended policy Review every included configuration file and virtual host, then apply the global deny/SFTP-only allow pattern consistently.

SFTP versus FTPS: choose the protocol before changing ports

Choose SFTP when you want an SSH2-based file-transfer endpoint, a single SSH transport, and the option of public-key authorization through mod_sftp. Choose FTPS when clients and infrastructure must retain FTP’s control/data-channel model while adding TLS protection.

The distinction also affects client compatibility and firewall planning. An SFTP client must initiate SSH2; an FTPS client must negotiate FTP with TLS. Treating the two as interchangeable can produce a service that is encrypted but inaccessible to the software that needs it, or a listener that is open on the wrong port.

Operational checklist

  • mod_sftp is included in the ProFTPD build and loaded.
  • The SFTP virtual host has a port different from the ordinary FTP listener.
  • SFTPEngine on appears in that virtual host.
  • At least one required, readable SFTPHostKey is configured, using the OpenSSH host keys where appropriate.
  • SFTPLog points to a writable directory.
  • Password or public-key authentication is configured for the intended users.
  • OpenSSH public keys are converted to RFC4716 when required by the authorization setup.
  • An SFTP client has successfully connected on the selected port before FTP is disabled.
  • All included files and virtual hosts have been checked for unintended FTP listeners or broad login allowances.
  • If the service is now SFTP-only, global login denial and the SFTP virtual-host exception are both present.

Configuration outcome

A correct migration leaves ProFTPD’s SFTP endpoint in a dedicated virtual host, with its own port, enabled SFTP engine, OpenSSH-compatible host keys, logging, and explicitly configured user authentication. You can operate that endpoint beside FTP while clients migrate, or enforce SFTP-only access by denying login globally and allowing it solely in the SFTP virtual host.

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.

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

Leave a Reply

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

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.

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
PC Slower Than It Used to Be?Free scan - under a minute

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.