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.

Search
Categories
Read More
Shopping
Redshirting in college football trending downward
College redshirting is on the decline, and the NFL draft could be a primary reason why.That, at...
By Merl Treutel 2025-05-15 02:28:03 0 656
Shopping
Celine by student pieces which he saw in the exhibition
a labor revolution that happening everywhere from media companies those behind the bill want to...
By Emilia Hurley 2024-09-29 09:51:25 0 4K
Sports
Cincinnati Reds Non-Tender Former No. 2 Pick in the MLB Draft
The Cincinnati Reds non-tendered Nick Senzel on Friday, finishing the period in the 'Queen City,...
By Bryanc Ranston 2024-03-07 06:28:59 0 12K
Shopping
Top 50 Sounds 50-41 Top 50 Sounds 50-41
Sound represents the very e sence of the NFL, and nobody understands that better than Bose. As we...
By Merl Treutel 2025-05-15 02:14:49 0 723
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
Aldyra https://aldyra.com