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.

Поиск
Категории
Больше
Shopping
The Weeknd Merch Quality And Price Guide
The Weeknd merch has become a favorite among fans of the artist. Many people shop for shirts,...
От Parke Shop 2026-02-18 10:39:52 0 386
Игры
Neverwinter Game Impressions – First Week Review
Game Impressions and Mechanics Many games tend to lose their charm once the initial demo is...
От Xtameem Xtameem 2025-12-23 09:12:47 0 591
Другое
Platinum Jewellery Market Report 2025 –2032: Key Trends and Projections
"Executive Summary Platinum Jewellery Market Opportunities by Size and Share CAGR...
От Data Bridge 2025-11-03 05:04:54 0 1Кб
Игры
What/If Cast Expands: 4 New Actors Join Renée Zellweger
Four talented performers have been added to the ensemble of Mike Kelley's upcoming social...
От Xtameem Xtameem 2026-03-04 10:10:20 0 224
Игры
Streaming Giant Acquisition: Hollywood Studio Deal Looms
Streaming Giant Eyes Major Hollywood Acquisition as Industry Consolidation Continues In a...
От Xtameem Xtameem 2025-11-04 01:37:02 0 1Кб
Aldyra https://aldyra.com