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.

Căutare
Categorii
Citeste mai mult
Networking
Technological Advancements Delivering Eco-Friendly Antifreeze Coolant Solutions
The essential fluid known as Antifreeze Coolant is a specialized formulation designed to manage...
By Deady Cnm 2025-11-06 07:35:19 0 1K
Alte
Difference Between Multi-Cap and Flexi-Cap Systematic Investment Plan in Jodhpur
If you are investing through SIP in mutual funds, you may have come across two popular categories...
By Ambition Finserve 2026-01-28 08:14:47 0 723
Jocuri
Schéma tactique 4-1-2-1-2 : Analyse et Conseils
Le schéma tactique 4-1-2-1-2 repose sur une organisation précise du terrain, avec...
By Xtameem Xtameem 2025-11-13 00:28:42 0 1K
Jocuri
The Diplomat' Season 2 – Plot Twists Revealed
Season 2 Plot Twists Insiders Reveal: The Shocking Twist in 'The Diplomat' Season 2 As we...
By Xtameem Xtameem 2025-12-27 00:47:40 0 522
Jocuri
HP ArcSight Acquisition: $1.5B Security Expansion
HP Expands Security Portfolio with $1.5 Billion ArcSight Acquisition In a strategic move to...
By Xtameem Xtameem 2026-01-20 03:52:02 0 434
Aldyra https://aldyra.com