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.

Cerca
Categorie
Leggi tutto
Giochi
Valorant Closed Beta: Raze Agent Abilities Guide
The highly anticipated closed beta of Valorant, Riot Games’ latest tactical shooter, has...
By Xtameem Xtameem 2026-02-03 04:47:10 0 401
Giochi
Perfect Match Season 3: Return & Highlights
Season 3 Return and Highlights Netflix's popular reality series returns for a third season,...
By Xtameem Xtameem 2026-01-08 03:32:48 0 448
Giochi
Outer Banks Season Updates: New Episodes & Trailer
Outer Banks Season Updates The adventure continues as the quest for hidden treasure intensifies...
By Xtameem Xtameem 2025-12-01 01:35:39 0 784
Giochi
Valorant classement : Guide et astuces pour progresser
Les parties classées de Valorant constituent l’arène où les joueurs...
By Xtameem Xtameem 2025-11-18 07:54:46 0 927
Fitness
Cabling Technologies Driving the Momentum of Global Solar Adoption
The transition toward renewable electricity is reshaping infrastructure expectations,...
By Divya Patil 2025-11-30 06:26:37 0 927
Aldyra https://aldyra.com