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
Watch Moonlight Online – Stream Anywhere with a VPN
Watching moonlight online from anywhere around the globe requires some planning, especially if...
By Xtameem Xtameem 2025-11-12 00:59:20 0 609
Alte
Emerging Opportunities Driving Core HR Software Market Growth
  The Core HR Software Market growth has gained momentum as businesses across industries...
By Sssd Ddssa 2025-09-18 06:16:20 0 1K
Alte
The Role of Biogas Plants in Achieving Renewable Energy Targets
The energy sector is a key driver in stimulating world development, bridging economic development...
By Priya Singh 2025-11-13 15:20:11 0 671
Alte
Who’s Winning in the Middle East and Africa Rolling Stock Market? Competitive Insights & Forecast
The Middle East and Africa rolling stock market is poised for notable growth, with...
By Danny King 2025-09-26 14:03:42 0 1K
Jocuri
PUBG Mobile Crazy Chicken Day: Event Guide & Rewards
PUBG Mobile has launched an exciting new event called Crazy Chicken Day, designed to add fun and...
By Xtameem Xtameem 2025-11-14 00:45:19 0 620
Aldyra https://aldyra.com