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.

Поиск
Категории
Больше
Health
The Intimacy Equation: Solving the Orgasm Gap with Communication
Sharpen Focus, Deepen Connection Mental alertness is vital in maintaining a satisfying sex life,...
От Nick Johans 2025-07-15 11:09:43 0 2Кб
Игры
Top VPNs for Netflix 2025 – Best Streaming Picks
Top VPNs for Netflix 2025 Bypassing Netflix geo-blocks requires specialized tools in 2025. Most...
От Xtameem Xtameem 2025-11-13 03:47:01 0 422
Shopping
a colder season calls for hydrating items
Keeping that in mind, I almost entirely depended on my Adidas Sambas and Salomon sneakers to get...
От Emily Crane 2024-07-18 10:57:37 0 9Кб
Другое
Inorganic Scintillators Market : Key Drivers and Restraints 2025 –2032
"In-Depth Study on Executive Summary Inorganic Scintillators Market Size and Share CAGR...
От Data Bridge 2025-11-03 05:41:35 0 561
Другое
Market Dynamics Shaping Bio Based Polypropylene in Medical Devices
Sustainability is reshaping the medical device sector, and bio-based polypropylene is at the...
От Ram Vasekar 2025-10-15 10:48:11 0 929
Aldyra https://aldyra.com