Ubuntu: Upgrade FTP user to SFTP

0
28K

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.

Search
Categories
Read More
Games
Tyler Henry Reading – Gronkowski Family Episode Recap
During the fifth episode of Live from the Other Side with Tyler Henry, titled...
By Xtameem Xtameem 2025-11-24 02:22:17 0 764
Games
Huppermage Dofus : Guide de la nouvelle classe magique
Les huppermages représentent une nouvelle classe de magiciens spécialisés...
By Xtameem Xtameem 2025-12-04 02:28:51 0 632
Other
Why Choose Utilities for Clean Room Yd-purification
Yuanda Utilities for Clean Room are critical to maintaining controlled environments, and when...
By tion puri 2026-01-22 03:40:29 0 464
Other
The Technology Stack: A Guide to Modern Web3 Gaming Solutions
The market is powered by a sophisticated and rapidly evolving stack of Web3 Gaming...
By Harsh Roy 2025-11-28 11:01:20 0 985
Shopping
GGDB Shoes photographed in leather pants made to look like
And with good reason according to an official Request For Data and Information on Trinidad and...
By Shiloh Copeland 2024-07-25 08:21:43 0 8K
Aldyra https://aldyra.com