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.

Поиск
Категории
Больше
Shopping
collaboration is part of Golden Goose Outlet a new partnership with
It a certified classic closet combo on days when the summer sun is hidden behind the clouds....
От Genesis Nguyen 2025-07-14 09:55:12 0 2Кб
Другое
Tidal Energy Industry: Harnessing the Power of the Oceans
The Tidal Energy Industry is emerging as a significant player in the renewable energy sector,...
От Rupali Wankhede 2025-11-06 12:06:27 0 349
Party
goes well with everything from polished penny Goyard to kitten
with a fit this silhouette goes well with everything from polished penny Goyard to kitten....
От Emerie Houston 2024-10-07 03:31:47 0 6Кб
Другое
Barriers to Growth in the Active Power Filter Market
The energy sector is a key driver in stimulating world development, bridging economic development...
От Priya Singh 2025-09-15 15:06:25 0 908
Другое
Heavy Construction Equipment Market: Current Trends, Growth, Top Impacting Factors, Growth Opportunities and Business Strategies
Heavy construction equipment forms the foundation of modern infrastructure development,...
От Ruhia Khan 2025-10-20 07:15:01 0 664
Aldyra https://aldyra.com