Ubuntu: Upgrade FTP user to SFTP

0
26كيلو بايت

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.

البحث
الأقسام
إقرأ المزيد
Networking
US Gas Detection Equipment Market Analysis Insights into Safety and Compliance
A comprehensive US Gas Detection Equipment Market Analysis highlights key trends, challenges, and...
بواسطة Mayuri Kathade 2025-09-23 10:38:39 0 248
Gardening
Eagles vs. Rams: 15 victors, 4 losers, 5 IDKs
The Philadelphia Eagles are 5-0 after defeating the Los Angeles Rams. This seemed like the Birds'...
بواسطة Gardner53 Gardner53 2025-08-21 02:44:55 0 1كيلو بايت
Health
How to Secure Your Partner's Love
Securing your partner's love is essential for maintaining a healthy and fulfilling relationship....
بواسطة Jones Barry 2025-02-05 09:49:18 0 3كيلو بايت
Networking
pop up book wholesale craft
The use of color printing is an important process of enterprise publicity album, all pages of...
بواسطة Aldyracom Aldyracom 2024-08-01 08:15:56 0 6كيلو بايت
Sports
Past WNBA to start with-spherical pick out waived for minute year this period
The Phoenix Mercury declared they experienced signed protect Haley Jones in direction of a...
بواسطة Bichette Bichette 2025-07-28 07:16:49 0 1كيلو بايت
Aldyra https://aldyra.com