Ubuntu: Upgrade FTP user to SFTP

0
28Кб

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.

Поиск
Категории
Больше
Игры
Calvert-Lewin : Joueur du Mois - FC 26
Calvert-Lewin Player du Mois Une nouvelle acquisition vient d’être ajoutée...
От Xtameem Xtameem 2026-01-20 00:10:37 0 383
Другое
What Role Does Qinlang Multi Stage Centrifugal Fan Play In Reliability?
Airflow challenges increase as systems become more enclosed and processes grow more intricate....
От qin lang 2026-02-02 06:55:44 0 411
Party
At Thairoyalspa, the service is driven by passion. That is our mantra for client retention.
We have specially trained therapists who offer a Full-Night Massage Service in Delhi. Are you...
От Anjali Sharma 2026-01-10 07:23:52 0 553
Игры
Monopoly GO Boba Fett Token – How to Unlock Guide
Monopoly GO has recently introduced a new Star Wars collectible thanks to its collaboration with...
От Xtameem Xtameem 2026-02-11 16:55:27 0 71
Игры
Victoria Beckham's Transformation – A Style Evolution
Victoria Beckham's Transformation Victoria Beckham’s public life reads like a study in...
От Xtameem Xtameem 2025-10-31 00:26:56 0 1Кб
Aldyra https://aldyra.com