Ubuntu: Upgrade FTP user to SFTP

0
25كيلو بايت

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.

البحث
الأقسام
إقرأ المزيد
Shopping
Las Vegas Raiders GM was shocked by Michael Gallups retirement
The lost one of their wide receivers before even taking the field at training camp on Wednesday...
بواسطة Merl Treutel 2025-05-15 02:15:49 0 438
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...
بواسطة Merl Treutel 2025-05-15 02:54:05 0 405
Shopping
Packers cover all their draft bases and then some with 2024 class
Six of the ' 11 draft picks in 2024 came on Day 3.But that doesn't mean you shouldn't be looking...
بواسطة Merl Treutel 2025-05-15 02:16:50 0 406
Shopping
only two ever made at Louis Vuitton Outlet the Vanity Fair s after party
Despite becoming a group just two years ago, is already achieving major career highs including...
بواسطة Matilda Leonard 2024-06-20 10:31:08 0 6كيلو بايت
أخرى
Golden Goose each fabric is cushiony enough that your
Goldensgoosesonsale.com wore a custom to the premiere styled. the ankle length white is made of...
بواسطة Amaris Rush 2025-06-01 06:02:23 0 357
Aldyra https://aldyra.com