Ubuntu: Upgrade FTP user to SFTP

0
28KB

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.

Rechercher
Catégories
Lire la suite
Autre
Transparent Solar PV Glass Market Size & Forecast 2025
Transparent Solar Pv Glass, Transparent solar PV glass supports building integration,...
Par Rupali Wankhede 2025-09-16 12:41:16 0 2KB
Autre
Build a High-Paying Cyber Career with an Ethical Hacking Course in Pune
As businesses rapidly adopt digital technologies, cyber threats have become increasingly...
Par WebAsha Technologies 2026-01-05 11:00:20 0 705
Autre
Baozhiwei Dark Tail Lights Offer Easy Ways to Stand Out?
Imagine cruising along winding roads as twilight settles, where visibility blends with style in...
Par Carlamp factory 2026-03-02 06:42:11 0 309
Shopping
Which Gusumachinery Chocolate Coating Machine Features Support Daily Output
Chocolate Coating Machine technology has become an important part of modern confectionery...
Par jsszgusufood jsszgusufood 2025-12-11 01:58:37 0 930
Jeux
Love on the Spectrum: New Season Announced
Mark your calendars for a fresh wave of heartfelt connections and genuine journeys. The...
Par Xtameem Xtameem 2026-03-06 03:20:57 0 189