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.

Zoeken
Categorieën
Read More
Other
Emerging Players and Startups in the Wafer Pre Aligner Market
The global Wafer Pre Aligner market leads the nation's so-called 'renaissance',...
By Priya Singh 2025-10-24 02:30:18 0 157
Literature
What can gps car tracker magnetic do?
1. Use gps car tracker magnetic to locate and track your important assets. Let you no...
By Aldyracom Aldyracom 2024-04-17 07:23:43 0 10K
Other
Electrolyzers Industry – Key Developments in Hydrogen Production Technology
Electrolyzers Industry The Electrolyzers Industry is advancing with innovations in efficiency,...
By Rupali Wankhede 2025-10-14 16:34:36 0 395
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 2K
Shopping
Not to the comments other Goyard Outlet people might make
isn't afraid of experimenting with gendered clothing either. After the launch of in as fashion...
By Rayna Walters 2024-09-12 08:32:19 0 6K