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.

Pesquisar
Categorias
Leia Mais
Networking
High-Purity Liquid Nitrogen Supporting Industrial Manufacturing
The cryogenic fluid known as Liquid Nitrogen is a highly versatile medium that leverages its...
Por Deady Cnm 2025-11-13 06:45:21 0 1K
Networking
Risk Assessment and Emergency Response for Mining Explosives
The Mining explosives are specialized energetic materials and systems engineered to...
Por Deady Cnm 2025-10-10 06:58:08 0 1K
Jogos
Dune: Awakening - Find Jocasta for Bene Gesserit Training
Exploring the vast deserts of Arrakis in Dune: Awakening reveals numerous opportunities to...
Por Xtameem Xtameem 2026-02-06 01:19:29 0 349
Jogos
Hyper Strategy in Mobile Legends: Guide & Tips
The concept of the hyper strategy in Mobile Legends revolves around a singular, focused...
Por Xtameem Xtameem 2026-01-21 03:41:49 0 408
Jogos
Metal Gear Collaboration: Delta Force Teaser Details
A staple icon within the Metal Gear universe, the cardboard box, made a surprising appearance in...
Por Xtameem Xtameem 2025-10-29 05:08:57 0 1K
Aldyra https://aldyra.com