Ubuntu: Upgrade FTP user to SFTP

0
26K

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.

Zoeken
Categorieën
Read More
Networking
Precision CNC machining Advanced Tools for High-Quality Industrial Manufacturing
Precision CNC Machining refers to the use of CNC technology to achieve high levels of accuracy...
By Mayuri Kathade 2025-09-26 10:32:12 0 282
Other
Competitive Benchmarking: Italian vs European DIY Markets
Manufacturing is the cornerstone of today's industry and business, enabling the production of...
By Priya Singh 2025-09-17 14:32:34 0 369
Other
set which could look just Golden Goose as appropriate at brunch
but there are still few educational institutions in the region for cusing on fashion which makes...
By Remi Wells 2024-10-29 18:40:55 0 4K
Crafts
Scale Production Effortlessly with Nante's Modular Socket Systems
In dynamic manufacturing environments where rapid change and varied power demands coexist, the...
By Lars xinnyi 2025-06-26 08:39:10 0 2K
Networking
Challenges in Installing and Maintaining China Fencing
The China Fencing is a rapidly growing sector within the country’s construction...
By Deady Cnm 2025-09-26 06:55:53 0 288
Aldyra https://aldyra.com