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.

Поиск
Категории
Больше
Literature
Cardiac Biomarkers Market to Reach $63.46 Billion by 2033 — Transforming Heart Disease Diagnosis
Market Overview The global cardiac biomarkers market size was valued...
От Mahesh Chavan 2025-11-04 07:19:09 0 2Кб
Игры
Freiheits-Blues-Set: Anomalie-Kontrolle verbessern
Freiheits-Blues für Anomalie-Kontrolle Das Zenless Zone Null Freedom Blues-Set ist speziell...
От Xtameem Xtameem 2026-01-24 00:53:50 0 575
Игры
Streaming 'The Holiday': Christmas Classic Guide
Streaming Tips for "The Holiday Discovering "The Holiday": A Christmas Classic Worth Streaming...
От Xtameem Xtameem 2025-12-25 00:28:12 0 714
Игры
Netflix VPN – Unlock Global Content & Access Any Library
Unlocking Global Netflix Content Across the globe, Netflix libraries hold unique treasures...
От Xtameem Xtameem 2025-12-01 01:32:47 0 1Кб
Другое
Evolving Dynamics and the Global Security Operation Center Market Trends
  The Global Security Operation Center Market trends are reshaping how enterprises address...
От Sssd Ddssa 2025-10-25 05:32:48 0 1Кб
Aldyra https://aldyra.com