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 Master Data Management Market Analysis, Trends, and Forecast 2025-2035
The Master Data Management market is witnessing significant growth as organizations...
От Shraddha Nevase 2025-08-22 10:39:36 0 2Кб
Игры
Marvel Rivals – Season 2 Struggles and Player Backlash
Initially, Marvel Rivals enjoyed an explosive debut, maintaining a consistently high player...
От Xtameem Xtameem 2025-11-26 03:28:41 0 580
Другое
The Impact of Store Format Diversification on Refrigerated Display Installations
The retail and foodservice landscapes are evolving rapidly, with energy efficiency becoming a...
От Tejas Kudale 2025-11-10 08:13:58 0 942
Другое
Cell Lysis and Disruption Market Growth, Opportunities, Industry Applications, Analysis and Forecast by 2031
The Cell Lysis and Disruption   Market research report has been crafted with the most...
От Janvi Mane 2025-12-08 10:16:55 0 694
Игры
No More Lost Revenue: MMOWOW Gold's Complete BIGO Recharge Solution
MMOWOW Gold has built a reputation as a trusted marketplace for digital game currencies, top-ups,...
От Lin Xiao 2025-07-31 02:32:19 0 2Кб
Aldyra https://aldyra.com