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
Jocuri
Whiteout Survival Lucky Wheel: Mythic Shard Guide
Lucky Wheel Event Overview Participating in the Whiteout Survival Lucky Wheel event offers...
By Xtameem Xtameem 2025-12-04 08:55:27 0 277
Jocuri
Australia Social Media Ban: Under 16s Face New Limits
Starting today, December 10, 2025, Australia has implemented a nationwide restriction on social...
By Xtameem Xtameem 2025-12-13 03:30:47 0 113
Alte
Criminal Lawyers in Dubai: Navigating the Legal Landscape
Dubai, a global hub for business and tourism, operates under a legal system rooted in Sharia law...
By Ganesh Choudhary 2025-10-26 09:06:57 0 960
Alte
Industrial Air Blower Market Growth Trends & Future Outlook 2027
Future Industrial Air Blower Market: Key Dynamics, Size & Share Analysis...
By John Ryan 2025-10-23 06:51:31 0 1K
Alte
Transforming Workforce Management: UAE HR Outsourcing Services Market Insights 2025–2030
As per MarkNtel Advisors the UAE HR Outsourcing Services Market size is valued at...
By James Williamsus 2025-11-10 08:49:21 0 727
Aldyra https://aldyra.com