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
Games
Olivia Colman on Queer Identity – Jimpa Film Insights
Olivia Colman, renowned for her Oscar-winning performances, has shared her deep connection with...
By Xtameem Xtameem 2026-02-10 07:34:31 0 235
Games
Hasbro Stock Surge – Strategic Pivot Drives Growth
Hasbro's strategic pivot fuels a remarkable resurgence, propelling its stock to a six-year...
By Xtameem Xtameem 2026-02-15 15:46:22 0 212
Other
“Consumer Preferences and Innovations in the Electric Toothbrush Market”
Daily dental care routines are transforming with the adoption of advanced tools designed to make...
By Amol Shinde 2026-02-17 09:49:31 0 167
Other
Cheese Packaging Market: Growth Forecast Across Emerging Applications and Packaging Solutions
The cheese packaging market is set to grow significantly over the coming years due to increasing...
By Harshal J72 2026-02-05 01:24:00 0 597
Games
FC 26 Player Moments – Features & How to Get Cards
Introduction to FC 26 Player Moments In FC 26, Player Moments cards are special editions that...
By Xtameem Xtameem 2025-11-06 02:11:35 0 1K
Aldyra https://aldyra.com