Ubuntu: Upgrade FTP user to SFTP

0
26K

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.

Search
Categories
Read More
Shopping
Loewe X On Shoes makes me le at how tortured she is on the topic
Combining a refined leather coat with a saucy mini skirt, wore a leather zip up bomber from that...
By Finley York 2025-08-22 15:03:58 0 593
Health
Dior Bags Outlet the two style types
My lifeand our life togetherrevolves around cycling, not just because we love to compete, but we...
By Jane Massey 2024-07-27 09:03:57 0 7K
Shopping
the first person to drop LDBBAGS a comment gets it
With close to three decades in the public eye has more iconic fashion moments than we can count....
By Sierra Cherry 2024-11-13 07:02:30 0 3K
Games
FACEIT and Movistar Riders Forge a New Chapter in Spanish Esports
In a move set to invigorate the Spanish esports landscape, FACEIT and Movistar Riders have joined...
By Rodeoneerer Rodeoneerer 2024-02-27 08:22:38 0 14K
Shopping
Final Combine medals count Ohio State cruises to first place
INDIANAPOLIS -- Here's the final NFL medal count following Monday's workouts (gold for...
By Merl Treutel 2025-05-15 02:42:15 0 1K