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.

Căutare
Categorii
Citeste mai mult
Alte
India Mining Chemicals market growth trends, volume insights & outlook 2030
India Mining Chemicals market size & insights As per recent study by Markntel Advisors...
By Rozy Desoza 2025-10-17 18:28:24 0 1K
Health
moonrock nuggets for sale website : https://thcweedexpress.com/
website : https://thcweedexpress.com/​​​​​​​Order top-quality weed online in the USA from THC...
By Thcweed Express 2025-11-26 16:00:00 0 114
Alte
Global Education Consulting Market Share, Key Players, and Emerging Trends
The competitive structure of the global education consulting market is a diverse and highly...
By Shraddha Nevase 2025-09-15 10:48:06 0 1K
Jocuri
Guild Wars 2 Q3 2025 Results – Revenue Recovery & Outlook
In the latest financial update for NCsoft, the company's Q3 2025 results reveal encouraging...
By Xtameem Xtameem 2025-11-12 02:11:31 0 395
Health
Qatar Antioxidants Market Size, Share & Growth Analysis, Forecast 2025–2030
Qatar Antioxidants Market IntroductionThe Qatar Antioxidants Market is poised for...
By James Williamsus 2025-10-22 07:08:04 0 953
Aldyra https://aldyra.com