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.

Поиск
Категории
Больше
Другое
Automotive Manufacturing Processes Driving Efficiency, Innovation, and Market Growth
  The automotive industry relies on a wide range of advanced manufacturing processes to...
От Rushi Dalve 2025-12-16 13:28:56 0 1Кб
Shopping
every generation of this business had Hermes really strong female executives
Nothingtures the western spirit quite like a fringe. there are also plenty of deals left on...
От Henley Pierce 2024-11-09 10:12:14 0 5Кб
Игры
Film Fashion Influence: Trends, Icons & Shifts
Film's grip on fashion proves elusive amid color councils and forecasts An inexact science still...
От Xtameem Xtameem 2025-11-13 01:45:29 0 983
Игры
Pokémon TCG Pocket: Initial Booster Pack Guide
Initial Booster Pack Selection When beginning your journey in Pokémon TCG Pocket, you'll...
От Xtameem Xtameem 2025-11-28 06:16:07 0 783
Игры
Netflix Appoints Bela Bajaria: Content VP
Netflix Welcomes Bela Bajaria to Lead Content Acquisition and Unscripted Programming In a...
От Xtameem Xtameem 2026-01-21 17:56:02 0 421
Aldyra https://aldyra.com