Ubuntu: Upgrade FTP user to SFTP

0
26K

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.

Search
Categories
Read More
Shopping
Cam Akers didnt expect to have limited role in Rams opener Im going to learn from it
Cam Akers had one of the most disappointing outings of his career in Week 1 of the 2022 NFL...
By Merl Treutel 2025-05-15 02:06:35 0 1K
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 1K
Dance
UConn womens basketball topples Georgetown, 85-44
UConn womens basketball stayed great inside meeting enjoy with a 85 41 victory more than...
By Bregman Alex 2024-10-09 08:55:52 0 4K
Other
Edge Over the Rest: Expert Handicap Strategies for Soccer Betting!
Edge Over the Rest: Expert Handicap Strategies for Soccer Betting! In the world of soccer...
By Nguyen Cuong 2024-12-09 06:54:42 0 2K
Shopping
Portugal Euro 2012 Bento calls on fresh faces The final 23 man squad
Paulo Bento named his Euro 2012 squad on Monday making Portugal one of the first big-name sides...
By Merl Treutel 2025-05-15 02:37:52 0 1K
Aldyra https://aldyra.com