Ubuntu: Upgrade FTP user to SFTP

0
27K

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
Monopoly GO Turret Twist – Rewards & Milestones Guide
Following the conclusion of the Snowtrooper Sprint event, Scopely has launched a new competition...
By Xtameem Xtameem 2025-12-10 02:50:35 0 37
Literature
Butane Market to Reach $174.43 Billion by 2033 — Fueled by Energy and Industrial Demand
Market Overview The global butane market size was valued at USD 104.57 billion in...
By Mahesh Chavan 2025-11-04 07:35:46 0 1K
Shopping
the number of Golden Goose brands that are co founded as
Cool and unflappable, he had a quiet stillness exemplified by the sound of his voice. based label...
By Priscilla Gamble 2024-12-19 05:06:24 0 3K
Shopping
Preview Scunthorpe United v Peterborough United
The Opposition:Having won promotion from League One to the Championship with Peterborough last...
By Merl Treutel 2025-05-15 02:50:37 0 2K
Other
An Overview of the Generative AI in Media and Entertainment Market
  The Generative AI in Media and Entertainment Market over time has evolved from a...
By Sssd Ddssa 2025-10-08 04:26:00 0 1K
Aldyra https://aldyra.com