Ubuntu: Upgrade FTP user to SFTP

0
27كيلو بايت

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.

البحث
الأقسام
إقرأ المزيد
Health
CBCT Dental Imaging Market Data – Informing Strategic Decisions
The CBCT Dental Imaging Market data provides critical insights into market trends, adoption...
بواسطة Divakar Kolhe 2025-09-26 10:23:07 0 688
أخرى
Europe Coated Paper Market Industry Trends and Future Projections: Regional Insights and Key Developments
"Executive Summary Europe Coated Paper Market Value, Size, Share and Projections Data...
بواسطة Danny King 2025-10-16 12:32:02 0 421
أخرى
Global Demand and Supply Analysis of Glycerol Monostearate Market
The global glycerol monostearate industry has evolved significantly with the growing...
بواسطة Shubham Gurav 2025-10-28 11:46:02 0 121
Wellness
Pharmaceutical Contract Manufacturing And Research Service Market Research: Emerging Trends and Future Outlook
The Pharmaceutical Contract Manufacturing And Research Service Market research emphasizes the...
بواسطة Sonu Pawar 2025-09-22 12:01:19 0 793
Shopping
fashion on Island serves one very specific purpose
The original costumes were by veteran costume designer, Showgirls, which revelled in luxurious...
بواسطة Bellamy Guerra 2025-10-22 07:51:37 0 319