Ubuntu: Upgrade FTP user to SFTP

0
25KB

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.

Rechercher
Catégories
Lire la suite
Shopping
Investing in Excellence: The Valcambi Gold 100g Bar
When it comes to investing in gold, few names resonate with as much prestige and...
Par A1m Mint 2024-08-23 10:26:07 0 4KB
Music
Top 10 Show Diễn Nghệ Thuật Đáng Xem Nhất:
Top 10 Show Diễn Nghệ Thuật Đáng Xem Nhất: Chìm Đắm Trong Sắc Màu Văn...
Par Hohoaian Hoo 2025-05-19 02:45:20 0 540
Shopping
Rex lands parachute jump stays mum on Kromer
The ' head coach jumped out of an airplane on Friday with the United States Army's Golden...
Par Merl Treutel 2025-05-15 03:05:32 0 518
Shopping
the seven inaugural finalists of this first year of the Loewe vogue fashion
prepare yourself for funky fashion chunky and the best oversized you've ever seen. Just don't...
Par Remi Wells 2024-10-23 12:13:55 0 2KB
Gardening
Golden Goose for the Signature Look fragrance
Golden Goose Outlet the upside is that the designers are able to spend more time doing the work...
Par Amaris Rush 2025-05-30 04:51:58 0 448
Aldyra https://aldyra.com