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
Jogos
Vexana New Skin Update – Futuristic Look & Features
The latest update introduces two captivating skins that elevate the visual experience for...
Por Xtameem Xtameem 2025-10-29 03:30:19 0 953
Outro
Market Leaders and Strategic Developments in Electronic Goods Packaging Industry
The Electronic Goods Packaging Market is evolving rapidly, driven by increasing...
Por Shubham Gurav 2025-10-09 10:33:55 0 1K
Shopping
How Can Eo Indicator Strips Guide Work at Hopeway AMD
In many controlled environments, Eo Indicator Strips from Hopeway AMD have become part of ongoing...
Por hua fufu 2025-11-18 02:05:19 0 791
Outro
Global Soft Magnetic Core Market Overview and Growth Outlook 2025–2031
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
Por Priya Singh 2025-10-29 15:39:42 0 921
Outro
Sustainability in Wind Farm Transport and Heavy Lifting Operations
Manufacturing is the cornerstone of today's industry and business, enabling the production of...
Por Priya Singh 2025-09-20 13:41:57 0 1K
Aldyra https://aldyra.com