Ubuntu: Upgrade FTP user to SFTP

0
28K

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
Обновления игры - новые анимации и погода
В скором времени в игре появятся обновленные анимации и улучшенные погодные эффекты, которые...
By Xtameem Xtameem 2026-01-27 05:55:59 0 19
Alte
Criminal Lawyers in Dubai: Navigating the Legal Landscape
Dubai, a global hub for business and tourism, operates under a legal system rooted in Sharia law...
By Ganesh Choudhary 2025-10-26 09:06:57 0 1K
Jocuri
PlayerUnknown's Battlegrounds — новые идеи интерфейса
Сообщество игроков PlayerUnknown's Battlegrounds активно делится идеями и предлагает...
By Xtameem Xtameem 2025-11-12 02:45:25 0 784
Jocuri
Monopoly GO: Sticker Treasures & Great Hall Feast Guide
Season Finale Activities As the Harry Potter GO season nears its conclusion, players are...
By Xtameem Xtameem 2026-01-27 07:07:55 0 24
Jocuri
Sparkassen Verbandsliga Rheinland: Final4-Entscheidungen nahen
Der Kampf um den Einzug ins Final4 spitzt sich zu, während einige Teams die Chance haben,...
By Xtameem Xtameem 2025-12-23 03:01:22 0 313
Aldyra https://aldyra.com