Ubuntu: Upgrade FTP user to SFTP

0
28Кб

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.

Поиск
Категории
Больше
Другое
Does Naishi Ball Valve Factory Provide Reliable Fluid Control Solutions?
Customers often turn toward our Naishi Ball Valve Factory whenever reliable control becomes...
От Naishi Valve 2026-02-02 06:07:30 0 886
Другое
High Purity Alumina Market: Key Growth Factors, Revenue Analysis
High purity alumina is a premium, high-value form of aluminum oxide characterized by its...
От Ruhia Khan 2025-11-04 07:54:21 0 2Кб
Игры
Marvel Rivals Patch 6.5 – Community Reacts to Balance
The upcoming Season 6.5 patch for Marvel Rivals has sparked significant discontent within its...
От Xtameem Xtameem 2026-03-06 11:07:43 0 239
Игры
Pokémon TCG Pocket – Porenta: Geheimtipp & Strategie
Wer im Pokémon TCG Pocket an den Start geht, sollte ein wachsames Auge auf Porenta haben....
От Xtameem Xtameem 2025-12-06 02:42:50 0 787
Другое
VerifyVista: The Smart Choice for Businesses Seeking Data Intelligence in 2025
In today’s digital world, running a business isn’t about luck. It’s about...
От Tarun Jrcompliance 2025-12-08 05:53:38 0 1Кб
Aldyra https://aldyra.com