Ubuntu: Upgrade FTP user to SFTP

0
27K

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
Comparing Viscose with Cotton, Polyester, and Other Fabrics
The Viscose is widely valued for its versatility and affordability. In apparel, it...
By Deady Cnm 2025-09-26 06:31:17 0 1K
Games
Surfshark Multi IP – Enhanced Privacy & IP Rotation
Tired of invasive third-party tracking and online profiling? Surfshark has introduced a...
By Xtameem Xtameem 2025-11-25 00:36:54 0 315
Shopping
Tigers vs. White Sox Prediction Odds Picks - August 2
starts for the against and the on Sunday at 2:10 p.m. ET. Oddsmakers list the Tigers as -159...
By Ebony Ortiz 2025-11-18 02:19:27 0 372
Games
Twilight Animated Series: Netflix Adapts Midnight Sun
Twilight Expands with Animation Twilight fans rejoice! Netflix is expanding the beloved vampire...
By Xtameem Xtameem 2025-11-03 01:46:04 0 650
Other
Luxury Jewellery Market Outlook: Emerging Opportunities & Growth Potential
The global luxury jewellery market has long been a symbol of wealth, status, and...
By Danny King 2025-10-10 12:36:41 0 1K
Aldyra https://aldyra.com