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
rather hibernate Tdsshoes than deal with frigid temps and sunsets
Over 1.5 million trees have been planted so far, a third of which have gone to the rainforest....
By Priscilla Gamble 2024-11-28 14:06:49 0 3K
Shopping
Redskins blast Bills to stay atop NFC East
The (7-7) remain in the driver's seat of the NFC East after knocking off the on Sunday in a game...
By Merl Treutel 2025-05-15 02:27:05 0 2K
Other
Revealing Winning Strategies in Football Betting
  Football betting is not only a passion for the sport but is also seen as a potential...
By TRAN KHOA 2024-11-18 02:21:50 0 3K
Shopping
unique is in the Golden Goose Sneakers Outlet options encourage you
Last week the group held a press conference on the of the triangle waist fire a potent reminder...
By Genesis Nguyen 2025-07-12 14:43:45 0 1K
Other
Middle East & Africa Emerging Opportunities in Smoked Salmon
The food and drink sector responds in real time to changing consumer requirements and innovations...
By Priya Singh 2025-09-20 14:20:37 0 332
Aldyra https://aldyra.com