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.

Căutare
Categorii
Citeste mai mult
Jocuri
Netflix Acquires Warner Bros. – Industry Reactions & Impact
The streaming landscape quakes as Netflix confirms its acquisition of Warner Bros., sending...
By Xtameem Xtameem 2025-12-07 02:33:49 0 196
Jocuri
Vertical Microdrama 'Swipe!'—Shogun Films' Bold Entry
Shogun Films and Trinity Content join forces to create vertical microdrama 'Swipe!' marking...
By Xtameem Xtameem 2025-11-28 01:18:00 0 352
Alte
Key Trends Driving the Styrene Isoprene Styrene Market in 2025
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
By Priya Singh 2025-11-06 02:35:35 0 729
Alte
What Drives Naishi's Interpretation of Flow as a Rising Stem Ball Valve Manufacturer?
Industrial flow management continues to evolve as pipelines operate across complex terrains and...
By Naishi Valve 2025-11-07 07:38:39 0 901
Alte
US Generator Sales Industry Insights
US Generator Sales Industry - Manufacturers, distributors, and rental firms form the industry...
By Rupali Wankhede 2025-09-27 19:00:52 0 1K
Aldyra https://aldyra.com