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.

Поиск
Категории
Больше
Health
Growing Healthcare Investments Fueling the Rapid Microbiology Testing Market Growth
The Rapid Microbiology Testing Market growth is being propelled by global healthcare expansion,...
От Divakar Kolhe 2025-11-13 11:45:27 0 884
Другое
TOC Analyzers Market Growth Drivers and Restraints
The global TOC Analyzers market leads the nation's so-called 'renaissance', such that...
От Priya Singh 2025-09-23 16:52:55 0 1Кб
Другое
Trends and Opportunities in the Immune Health Supplements Market
Among the most dependable areas of healthcare investment stands the global Immune Health...
От Priya Singh 2025-10-03 12:33:30 0 1Кб
Другое
Digital Map Market Growth, Opportunities, Industry Applications, Analysis and Forecast by 2031
The Digital Map Market research report has been crafted with the most advanced and best tools to...
От Janvi Mane 2026-01-09 11:07:26 0 18
Другое
Stabilizing the Grid: Comprehensive Synchronous Condenser Market Analysis
The Synchronous Condenser Market Analysis provides an in-depth overview of the global market for...
От Rupali Wankhede 2025-11-25 12:38:36 0 762
Aldyra https://aldyra.com