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 Share Battle: Middle East and Africa Wood Pellet Industry Key Companies & Growth Strategies
The Middle East and Africa wood pellet market is set for steady expansion, with...
От Danny King 2025-09-26 14:45:06 0 1Кб
Shopping
Bottega Veneta that will make am think of you every
This morning March, was spotted enjoying some time off in Sydney, Australia with friends and she...
От Finley York 2025-08-01 09:07:28 0 2Кб
Другое
there is something about Goyard the fall season that makes
As for what you can expect from her outfits to come? they're all a little more theatrical of...
От Remi Wells 2024-10-29 09:48:42 0 4Кб
Другое
Alloy Steel Market: Industry Trends Driving Innovation in Automotive, Construction, and Energy Sectors
The Alloy Steel Market is experiencing dynamic growth due to evolving industrial...
От Harshal J72 2025-11-06 02:40:21 0 692
Shopping
The Opener Hoglund Buehler Cubs Brewer
With around 20% of the MLB regular season now in the books, here are three things well be keeping...
От Ebony Ortiz 2025-11-18 02:05:54 0 287
Aldyra https://aldyra.com