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.

Поиск
Категории
Больше
Networking
Comparing Water Soluble Detergent Pods with Traditional Detergents
The Water-soluble detergent pods serve a wide range of applications. In laundry...
От Deady Cnm 2025-09-26 06:28:32 0 914
Другое
Thailand Subscription Box Market Report 2032 Edition: Industry Market Size, Share, Growth and Competitor Analysis- The Report Cube
Thailand Subscription Box Market Overview 2026-2032 According to the latest report by The Report...
От Lily Desouza 2025-11-14 07:10:43 0 282
Shopping
Golden Goose and thoroughness in curating a program
One show will never forget is the fall show invited me. do not think it was necessarily his all...
От Adalynn Cunningham 2025-07-29 09:57:18 0 2Кб
Gardening
If Mike Evans is readily available, should Giants be fascinated?
Celebrity large receiver Mike Evans and the Tampa Bay Buccaneers could be gone to a parting of...
От Carthy7 Carthy7 2024-11-16 02:31:17 0 4Кб
Другое
Comparing Offshore vs. Onshore Wind Turbine Paint Requirements
The chemical sector remains resurgent, delivering critical inputs in agriculture, healthcare,...
От Priya Singh 2025-10-18 12:58:39 0 696
Aldyra https://aldyra.com