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.

Căutare
Categorii
Citeste mai mult
Alte
Roofing Materials Market Report 2032 Edition: Industry Market Size, Share, Growth and Competitor Analysis- The Report Cube
Roofing Materials Market Overview 2026-2032 According to the latest report by The Report Cube,...
By Lily Desouza 2025-11-07 18:43:04 0 400
Alte
US Ginger Market Outlook 2032: Leading Companies & Share Insights
US Ginger Market Size & Insights According to MarkNtel Advisors study The future of US...
By Rozy Desoza 2025-10-16 18:09:17 0 661
Shopping
Christian Louboutin Sale idea of what the present might look like
What they settled on was kind of boyish and futuristic with this pop of fluoro color, he says of...
By Rayna Walters 2024-09-08 12:16:49 0 6K
Alte
Integrating Streaming Software with Social Media Platforms
The global Streaming Software market leads the nation's so-called 'renaissance',...
By Priya Singh 2025-10-28 02:56:49 0 581
Alte
North America Inflight Catering Market Size, Share & Forecast Analysis to 2030
North America Inflight Catering Market Size & Insights According to MarkNtel Advisors study...
By Rozy Desoza 2025-10-22 16:23:41 0 628
Aldyra https://aldyra.com