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.

Поиск
Категории
Больше
Другое
Market Drivers Behind the Rapid Adoption of Disposable Bioprocessing Equipment
Among the most dependable areas of healthcare investment stands the global Single Use...
От Priya Singh 2025-11-18 16:13:23 0 639
Игры
E-Sport Erfolg: Levy Finn Rieck wird Meister [FC 25]
Erfolg im E-Sport Nach zahlreichen verpassten Gelegenheiten und knapp verfehlten Zielen hat er es...
От Xtameem Xtameem 2025-12-02 01:32:32 0 255
Другое
Unveiling the Growth Trajectory of the Network Automation Market
  The Network Automation Market is experiencing significant growth as organizations seek to...
От Sssd Ddssa 2025-09-18 07:05:18 0 1Кб
Wellness
Telepharmacy Market Economic Outlook Highlighting Investment Trends, Cost-Effectiveness, and Growth Drivers in Healthcare
The Telepharmacy Market Economic Outlook highlights the market’s financial growth prospects...
От Sonu Pawar 2025-09-22 11:36:54 0 2Кб
Crafts
Why are traceability packaging and pilot tests crucial for wire sourcing
In conversations about welding consumables and supply chain resilience, Aluminum Tig Wire...
От Jason Robby 2025-09-23 07:34:13 0 1Кб
Aldyra https://aldyra.com