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.

Поиск
Категории
Больше
Другое
In-Depth Analysis of the Europe Chelating Agents Market: Industry Share, Demand Trends, and Future Insights
"Global Demand Outlook for Executive Summary Europe Chelating Agents Market Size and...
От Danny King 2025-10-16 11:49:26 0 547
Shopping
sustainability requirements it Saint Laurent Outlet has implemented
I always get a little nervous packing my as the mere thought of them being crushed is enough to...
От Priscilla Gamble 2025-01-12 05:09:34 0 3Кб
Игры
FC 26 Daily Objectives – How to Earn Rewards Fast
Introduction to FC 26 Daily Objectives Every evening at 6pm, a minimum of two fresh tasks appear...
От Xtameem Xtameem 2025-10-31 02:26:16 0 209
Wellness
Capsule Market Segment: Focusing on Specialized Dosage Forms
The Capsule Market segment reflects the growing importance of specialized dosage forms tailored...
От Sonu Pawar 2025-09-22 12:08:04 0 894
Другое
Strategic Developments in the Wetroom Waterproofing Solutions Market
The wetroom waterproofing solutions market is becoming increasingly competitive, driven by rising...
От Ram Vasekar 2025-09-09 10:21:44 0 883
Aldyra https://aldyra.com