Ubuntu: Upgrade FTP user to SFTP

0
28K

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.

Pesquisar
Categorias
Leia Mais
Outro
Unlock Continuous Growth with Red Hat Learning Subscription (RHLS)
In today's fast-paced tech landscape, staying ahead requires constant skill enhancement. The Red...
Por WebAsha Technologies 2026-01-22 12:52:53 0 117
Outro
The Best Business Data Provider in India Powering Smarter Decisions - Verify Vista
It’s not just a bonus or something nice to have on the side. If you want to grow, innovate,...
Por Tarun Jrcompliance 2026-01-13 08:45:27 0 233
Jogos
Facebook Privacy Changes: Streamlined Controls Explained
Recently, Facebook announced a significant shift in its approach to user privacy, signaling a...
Por Xtameem Xtameem 2026-01-15 02:31:56 0 217
Networking
Sharing the basic parameter characteristics of the 36mm planetary gearbox wholesale disc
Reduction ratio: The input speed of the 36mm planetary gearbox wholesale is higher than...
Por Aldyracom Aldyracom 2024-09-09 08:01:14 0 6K
Outro
High-Speed Steel Cutting Tools Market Size, Analytical Overview, Growth Factors, Demand, Trends and Forecast By 2031
The High-Speed Steel Cutting Tools  Market research report has been crafted with the most...
Por Janvi Mane 2025-12-02 13:21:49 0 664
Aldyra https://aldyra.com