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.

Поиск
Категории
Больше
Другое
Global Hybrid Bus Market Poised for Strong Growth as Cities Embrace Clean Mobility Solutions
The global Hybrid Bus Market is gaining traction as governments and transit agencies...
От Caitan Cruz 2025-12-09 11:37:17 0 331
Shopping
and author of the styling and Dior shopping newsletter earl earl that
What she does keep are her gifts ungiven: a stamp with a whistle on it her nickname for him,...
От Priscilla Gamble 2024-12-25 08:48:22 0 4Кб
Другое
How AI and Simulation Are Enhancing SMA Design
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
От Priya Singh 2025-10-27 12:50:50 0 951
Другое
XR Hardware Market : Trends, Forecast, and Competitive Landscape 2025 –2032
"Executive Summary XR Hardware Market Size and Share: Global Industry Snapshot CAGR...
От Data Bridge 2025-11-04 03:35:46 0 768
Игры
Zenless Zone Zero – Release am 4. Juli 2024 enthüllt
Bisher war der genaue Veröffentlichungstermin für Hoyoverse' neues Spiel Zenless Zone...
От Xtameem Xtameem 2025-12-02 07:36:44 0 336
Aldyra https://aldyra.com