Ubuntu: Upgrade FTP user to SFTP

0
24كيلو بايت

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
How To Purchase New Arrivals Dior Outlet
How To Purchase New Arrivals Dior Outlet? I Strongly Recommended https://www.diorsbags.com
بواسطة Mariah Rubio 2024-09-04 09:48:41 0 4كيلو بايت
Shopping
GGDB Shoes photographed in leather pants made to look like
And with good reason according to an official Request For Data and Information on Trinidad and...
بواسطة Shiloh Copeland 2024-07-25 08:21:43 0 6كيلو بايت
Shopping
Dior Sale time kicking off the brand 20th celebrations
Her question gives my story context I've been communing. Amidst the myriad runway shows currently...
بواسطة Priscilla Gamble 2024-12-28 10:48:42 0 1كيلو بايت
Shopping
Discover the Grace of the Indian Gold Tennis Bracelet: A Fusion of Tradition and Modernity
Introduction The Indian gold tennis bracelet is a stunning piece of jewelry that...
بواسطة A1j Jewellers 2024-08-15 09:16:32 0 5كيلو بايت
Shopping
plenty Dior 30 Montaigne Bags of us are planning trips to the
it on the trend but is making its way back into. cites production costs as the reason for their...
بواسطة Priscilla Gamble 2025-01-03 06:31:58 0 807