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.

البحث
الأقسام
إقرأ المزيد
Networking
Most NFL Playoff Team and Department Wins Because 2000
Background: Feb 4, 2019; Atlanta, GA, United States; New England Patriots trainer Bill Belichick...
بواسطة Carthy7 Carthy7 2024-11-16 02:30:10 0 3كيلو بايت
Shopping
Saint Laurent Bags Sale I love being transported into a world
I brushed its sleeve to my cheek, goose bumping at the supple, silky texture. Fashion does,...
بواسطة Priscilla Gamble 2025-01-06 12:17:07 0 2كيلو بايت
Literature
electrical tea plucking machine supply is not smooth when using what is going on?
electrical tea plucking machine supply is still relatively common in life, especially with...
بواسطة Aldyracom Aldyracom 2024-08-01 03:41:11 0 5كيلو بايت
أخرى
Ways to Connect in a New Community
Connecting with your community can be a very meaningful and impactful way to live your life,...
بواسطة Ron Richie 2024-06-20 17:03:27 0 6كيلو بايت
Shopping
prestigious reputation Loewe for excese in the arts so it only makes sense
I think for a freelancer I do feel quite proud of. As a whole pratt Institute has a prestigious...
بواسطة Sierra Cherry 2024-11-30 11:11:09 0 2كيلو بايت