Ubuntu: Upgrade FTP user to SFTP

0
25K

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.

Buscar
Categorías
Read More
Networking
Top 10 Show Diễn Nghệ Thuật Đáng Xem Nhất:
Top 10 Show Diễn Nghệ Thuật Đáng Xem Nhất: Chìm Đắm Trong Sắc Màu Văn...
By Hohoaian Hoo 2025-05-31 10:42:36 0 838
Networking
How can 38mm half foldable PP caps be stored and transported efficiently?
38mm half foldable PP caps is the initial processing stage of plastic bottle manufacturing,...
By Aldyracom Aldyracom 2024-04-17 07:58:50 0 8K
Shopping
New Arrival Collections Miu Miu Sale
New Arrival Collections Miu Miu Sale https://www.miumiusshoes.com
By Adley Mclean 2025-06-14 09:19:03 0 635
Networking
Understanding Cloud-Based Hosting: A Comprehensive Guide
Cloud-based hosting is a modern and scalable solution that enables businesses and individuals to...
By A1j International 2025-02-24 08:47:25 0 2K
Shopping
Hermes Handbags luxury outerwear brand mackage
Keeping in mind how hard it can be to shop for chic s, we also asked to share her gift...
By Priscilla Gamble 2025-01-17 05:10:48 0 2K