Ubuntu: Upgrade FTP user to SFTP

0
28Кб

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.

Поиск
Категории
Больше
Другое
Vietnam Cosmetics Market Size, Share & Forecast Analysis to 2030
Vietnam Cosmetics Market Size & Insights According to MarkNtel Advisors study The future...
От Rozy Desoza 2025-10-29 19:26:23 0 886
Другое
Best Property Agents in Dubai and the Cheapest Places to Buy Property in Dubai
Dubai’s real estate market is one of the most dynamic and fast-growing in the world....
От Invesca Invesca 2025-11-26 09:51:02 0 880
Другое
Future Forecasts for the US Virtualization Security Market
  The US Virtualization Security Market forecasts demonstrate a promising trajectory, driven...
От Sssd Ddssa 2025-10-03 07:38:20 0 1Кб
Networking
Rising Demand for Polysilicon in Renewable Energy Applications
The material known as Polysilicon—also commonly called poly-crystalline silicon—is a...
От Deady Cnm 2025-11-11 06:11:54 0 1Кб
Shopping
How old is Brock Purdy Where 49ers star ranks among youngest QBs in Super Bowl history
By now, you've heard that Brock Purdy was "Mr. Irrelevant" in the Reggie Jackson Jersey 2022 NFL...
От Merl Treutel 2025-05-15 02:51:36 0 2Кб
Aldyra https://aldyra.com