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.

Căutare
Categorii
Citeste mai mult
Jocuri
The Urbz Nintendo DS – Revisiting Sims Chaos
A familiar itch led me back to the Nintendo DS library recently, specifically towards the quirky...
By Xtameem Xtameem 2026-03-04 03:49:34 0 443
Jocuri
Netflix Women's Soccer - Expanding Global Coverage
Netflix Expands Women's Soccer Coverage Netflix's streaming canvas now stretches north, painting...
By Xtameem Xtameem 2025-12-20 00:51:35 0 744
Alte
Steel Processing Market Production Capacity and Long-Term Demand Outlook
Industrial development relies heavily on processed steel products that meet stringent...
By Ram Vasekar 2026-03-24 08:12:21 0 340
Jocuri
Netflix Top 10 Picks: Trending Shows to Watch Now
Top 10 Netflix Picks Whenever I'm unsure about what to watch on Netflix, I often browse the top...
By Xtameem Xtameem 2025-11-09 03:28:33 0 1K
Alte
Energy-Saving Design Supports Sustainable Production Goals
As global consumption patterns continue to evolve, manufacturers are paying closer attention to...
By sean zhang 2026-03-16 10:35:50 0 831
Aldyra https://aldyra.com