Ubuntu: Upgrade FTP user to SFTP

0
28K

You might to upgrade an exitsing user to able to securely connect to server using SFTP (22) protocol instead of FTP (21). Before proeeding you might want to check if your current user has "ftp-user" privlidge or not.

In order to check that you can run the following command into the ubuntu server:

groups USER_NAME

If you see "ftp-user" in the output only then you should proceed further.

Moving forward, you can ssh into your server already using root user and open the following file:

/etc/ssh/sshd_config

At the end of the file, copy & paste the follwing code:

Match User user
    ForceCommand internal-sftp
    PasswordAuthentication yes
    PermitTunnel no
    AllowAgentForwarding no
    AllowTcpForwarding no
    X11Forwarding no

Replace user with the username from above. Finally, save the configuration and restart SSH service

sudo systemctl restart ssh

That is it! You can now log into server using port 22 on the same "user" and also be able to access the Filezilla securely.

Search
Categories
Read More
Networking
GPS Tracking Systems Help Build Eco-Friendly and Cost-Effective Fleets
  In today’s logistics, transportation, and field service industries, fleet efficiency...
By EnRoute Technologies 2026-01-06 12:10:26 0 921
Games
Pokémon TCG B1a – Feuerrote Flammen Karten-Übersicht
Pokémon TCG Erweiterung Entdecke die wichtigsten Karten aus dem Set B1a „Feuerrote...
By Xtameem Xtameem 2025-12-16 10:11:23 0 626
Games
FFWS 2025: Free Fire World Series Finals in Jakarta
FFWS 2025: Esports Showdown The 2025 Free Fire World Series (FFWS) Global Finals is set to...
By Xtameem Xtameem 2025-12-04 05:39:52 0 857
Games
Ella Toone: Star de Winter Wildcards
Ella Toone: Star de Winter Wildcards Une nouvelle recrue fait son apparition dans la DCE de FC...
By Xtameem Xtameem 2026-01-01 23:50:44 0 587
Games
Gift Cards: Key Benefits & Global Popularity
In recent years, the popularity of gift cards has surged, transforming them into a significant...
By Xtameem Xtameem 2025-11-19 02:17:49 0 1K