Ubuntu: Upgrade FTP user to SFTP

0
28K

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.

Căutare
Categorii
Citeste mai mult
Jocuri
Оригинальные таблички для офиса от BaTaB
В нынешнем бизнесе достоинство совместной идентичности трудно переоценить. Единственный из...
By Michail Popov 2026-01-21 08:02:05 0 728
Alte
What Makes Yd-purification Clean Rooms Reliable in Operations
Yuanda Clean Room environments are essential for high-precision industries, and yd-purification...
By tion puri 2026-01-08 03:29:14 0 642
Alte
Capping-machine Advancing Sustainable Production Models
As packaging manufacturers seek both efficiency and cost-effectiveness, evaluating the Cap...
By sean zhang 2025-12-15 08:46:41 0 1K
Jocuri
Detroit Police Officer & Kid Partner: Clear Name, Fight Crime
A Detroit police officer finds himself in a reluctant partnership with his girlfriend’s...
By Xtameem Xtameem 2026-03-17 11:16:08 0 1
Alte
Brazil Ice Cream Market Report 2032 Edition: Industry Market Size, Share, Growth and Competitor Analysis- The Report Cube
Brazil Ice Cream Market Overview 2026-2032 According to the latest report by The Report Cube,...
By Lily Desouza 2025-11-06 19:15:35 0 1K