Ubuntu: Upgrade FTP user to SFTP

0
27χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Music
Forecasts Driving the Generative AI in Data Analytics Market
  The Generative AI in Data Analytics Market forecasts indicate strong expansion potential,...
από Sssd Ddssa 2025-09-24 10:04:39 0 669
Shopping
Not only does it put out pieces that feel both special
Zara Home consistently fills that void. Not only does it put out pieces that feel both special...
από Emily Crane 2024-07-12 05:58:15 0 8χλμ.
άλλο
The Advantages of Using a Cheap SMM Panel
Introduction In the fast-paced world of social media marketing, businesses, influencers, and...
από SocialPanel Pro 2025-09-14 10:21:34 0 854
Shopping
Most Popular Styles Golden Goose On Sale
Most Popular Styles Golden Goose On Sale https://www.goldensgoosesonsale.com
από Adley Mclean 2025-06-15 06:28:00 0 2χλμ.
άλλο
Testing Inspection and Certification (TIC) Market Growth, Trends, and Future Outlook
The global Testing, Inspection, and Certification sector presents a unique market structure,...
από Shraddha Nevase 2025-09-15 11:48:57 0 971