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.

Site içinde arama yapın
Kategoriler
Read More
Shopping
Not only does it put out pieces that feel both special
Zara Home consistently fills that void. Not only does it put out pieces that feel both special...
By Emily Crane 2024-07-12 05:58:15 0 8K
Sports
Red Sox Linked To Celebrity Bottle, Slugger In Feasible Blockbuster Profession
The Boston Red Sox need to make a significant dash this offseason and one insider suggested an...
By Bryanc Ranston 2024-03-07 06:11:46 0 12K
Religion
Làng mai Thế Chí Tây vào vụ Tết
Làng mai Thế Chí Tây vào vụ Tết – Giữ hồn xuân đất Huế...
By Hohoaian Hoo 2025-09-08 08:41:40 0 1
Shopping
Lest we forget much Saint Laurent Sale of work examined
I've been a fan of for ages since before sustainability was a pillar of the brand and the work...
By Mariah Rubio 2024-08-27 11:07:22 0 5K
Shopping
Bigo Live “PK Battle” Mode Explained: Rules, Strategies, and Rewards
Among Bigo Live’s many interactive features, the “PK Battle” stands out as one...
By Steve Org 2025-07-15 03:49:48 0 1K