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.

Поиск
Категории
Больше
Crafts
Why Do Stop Turn Tail Reverse Lights Shape Driving Comfort?
People who search for Stop Turn Tail Reverse Lights usually have a clear idea in mind. They...
От Carlamp factory 2025-12-04 06:00:22 0 699
Другое
Rotating Equipment Market: Trends, Innovations, and Future Outlook in Industrial Machinery
Rotating equipment, including pumps, compressors, turbines, and motors, plays a vital role...
От Rupali Wankhede 2025-12-09 17:26:37 0 457
Игры
Stage Sorcery: Magic in Theater Production Revealed
Creating stage sorcery demanded intense physicality from performers under Steven Hoggett's...
От Xtameem Xtameem 2025-12-12 05:39:55 0 299
Другое
SMM Panels for TikTok Virality: What Works Best
Introduction TikTok has rapidly become one of the most influential social media platforms...
От SocialPanel Pro 2025-09-13 11:50:09 0 2Кб
Другое
Rising Demand for Rubber Seals in Automotive Manufacturing
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
От Priya Singh 2025-11-18 14:59:50 0 746
Aldyra https://aldyra.com