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.

Pesquisar
Categorias
Leia Mais
Outro
UAE Catering Services Market Size, Share & Forecast Analysis to 2030
UAE Catering Services Market Size & Insights According to MarkNtel Advisors study...
Por Rozy Desoza 2025-10-22 16:19:15 0 928
Party
sport yours Christian Louboutin Shoes this spring with a matching trouser
People hate happy women? Maybe. But this movie hates truly trans gressive ones. The actor took a...
Por Matilda Leonard 2024-06-14 07:50:53 0 9K
Outro
Abrasive Market to Reach USD 63.79 Billion by 2033, Growing at a CAGR of 4.9%
Market Overview The global Abrasive Market size was valued at USD 41.47 billion in...
Por Mahesh Chavan 2025-11-03 08:17:41 0 1K
Jogos
Florian Wirtz – Gold Rare Card Guide & FC 26 Coins
Introduction About Florian Wirtz Florian Richard Wirtz, born on May 3, 2003, in Pulheim, North...
Por Xtameem Xtameem 2025-11-08 00:28:54 0 661
Outro
Antimicrobial Furniture: Combining Aesthetics with Health Benefits
The antimicrobial furniture market is at a crossroads where safety, hygiene, and sustainability...
Por Ram Vasekar 2025-09-09 12:13:00 0 1K