Ubuntu: Upgrade FTP user to SFTP

0
25K

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
Music
This Working day in just Braves Background Spahn turns into the 2nd oldest pitcher
 in the direction of toss a no-hitterBraves Franchise Record1961 Warren Spahn turns into the...
By Stadion Nieuw 2024-03-09 08:15:47 0 12K
Sports
Dolphins draft alternatives 2025: How does Kenneth Grant match into Miami's roster
Christian Wilkins performs for the Las Vegas Raiders. Calais Campbell performs for the Arizona...
By Miami Dolphins 2025-07-18 08:29:19 0 496
Games
MacroMicro Making Global Macroeconomic Trends Understandable for Everyone
In today’s complex financial world, staying ahead of macroeconomic trends is crucial for...
By Katharineee Katharineee 2025-06-09 06:49:09 0 1K
Religion
What is a Half-Ball Handicap Bet? Effective Tips for Winning Half-Ball Handicap Bets
A half-ball handicap bet, also known as a 0.5 handicap, is a popular term among football betting...
By Hennesy Hvttalatathui 2024-11-16 06:42:01 0 3K
Other
outfit and the other Loewe one is the polka dot one of the final pieces
As for hints on what will wear for weekend two? you'll just have to wait and see. collection was...
By Remi Wells 2024-10-19 13:54:56 0 3K
Aldyra https://aldyra.com