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
Shopping
Texans have several positional battles in 2024
2024 offseason program has come to an end. The Texans wont return to the field for practice until...
By Merl Treutel 2025-05-15 02:01:43 0 431
Shopping
Elway on Von The goal is always to get long-term deal
Two days after authored one of the most dominant defensive performances Michael Irvin Jersey in...
By Merl Treutel 2025-05-15 02:16:18 0 424
Shopping
Jeremiahs top 50 D.J. Humphries among 11 newcomers on list
NFL Media analyst Daniel Jeremiah has released his , and while USC defensive end remains the No....
By Merl Treutel 2025-05-15 02:33:56 0 401
Shopping
What channel is Chiefs vs. Cardinals on today Time TV schedule for NFL Week 1 game
TheChiefs begin the start of a new era of sorts Sunday, as they travel to Arizona for what they...
By Merl Treutel 2025-05-15 02:54:05 0 405
Religion
Environmentally friendly, Boise St. fight Wyoming 20-17, clinch department name
LARAMIE, Wyo.Taylen Inexperienced threw for a touchdown and ran for an additional Jason Steele...
By Carthy Carthy 2024-09-19 00:36:02 0 4K
Aldyra https://aldyra.com