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.

Zoeken
Categorieën
Read More
Spellen
Free Fire OB41 Advanced Server: Registration Guide
Every couple of months, Garena releases the newest update for its popular game Free Fire. Before...
By Xtameem Xtameem 2026-02-10 02:34:07 0 231
Other
How Chinese Frp Daylighting Panels Are Viewed by Chuanya Company
Chinese Frp Daylighting Panels have become an increasingly discussed topic within industrial...
By jiangbb jiangbb 2026-01-04 07:01:26 0 632
Spellen
September Netflix Arrivals: Top Picks & Hidden Gems
September's Netflix arrivals offer a curated escape into diverse cinematic worlds, blending...
By Xtameem Xtameem 2026-01-15 04:32:01 0 419
Other
Geotechnical Engineering Market 2025:Competitive Landscape, Revenue Analysis & Forecast
Geotechnical engineering is a vital branch of civil engineering that focuses on...
By Ruhia Khan 2025-10-17 10:31:39 0 2K
Spellen
Marvel Rivals: Rapid Roster Growth vs Overwatch 2
Marvel Rivals has rapidly expanded its roster since its debut, initially launching with 33...
By Xtameem Xtameem 2025-11-18 00:27:42 0 962
Aldyra https://aldyra.com