Ubuntu: Upgrade FTP user to SFTP

0
27K

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.

Cerca
Categorie
Leggi tutto
Altre informazioni
Why Choose Yuanda Automatic Sliding Doors for High-Traffic Areas?
Automatic Sliding Doors from yd-purification provide innovative solutions for modern industrial...
By tion puri 2025-09-19 02:53:05 0 688
Networking
Benefits of Using Cellulosic Man-made Fiber in Clothing and Home Textiles
The Cellulosic man-made fibers are produced by dissolving purified cellulose in...
By Deady Cnm 2025-10-03 06:35:00 0 546
Sports
台灣消費者對SP2S電子煙的評價如何?
隨著電子煙在台灣的普及,消費者對於產品的選擇越來越注重實際體驗與口碑評價。在眾多品牌中,SP2S電子煙近年來逐漸受到關注,成為不少使用者討論的熱門話題。究竟台灣消費者對這款產品的真實看法為何?是...
By Kai Song 2025-10-08 02:44:01 0 494
Altre informazioni
Power-to-X Industry Insights
Power-to-X Industry - The industry comprises electrolyzer manufacturers, synthesis technology...
By Rupali Wankhede 2025-09-27 18:12:29 0 595
Crafts
Why HENGFENG Water Treatment Polyacrylamide Improves Project Value
When industries evaluate solutions for wastewater and clean water projects, Water treatment...
By polyacrylamidefactory HFen 2025-09-17 05:42:35 0 827