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
Shopping
She rewears her Cheap Dior Handbags high school gymnastics
It holds a special place in my heart because it was his last couture show before he was...
By Genesis Nguyen 2025-07-12 11:53:04 0 2K
Games
Live Streaming Events: WWE Raw & SAG Awards on Netflix
Live Streaming Events in February Stream the Screen Actors Guild Awards live this February....
By Xtameem Xtameem 2026-01-07 03:31:21 0 236
Other
Transparent Solar PV Glass Market Size & Forecast 2025
Transparent Solar Pv Glass, Transparent solar PV glass supports building integration,...
By Rupali Wankhede 2025-09-16 12:41:16 0 1K
Other
HVAC Pump Market Size, Share & Forecast Analysis to 2030
HVAC Pump Market Size & Insights According to MarkNtel Advisors study The future of HVAC...
By Rozy Desoza 2025-10-30 18:20:02 0 977
Other
Global Airport Sleep Pod Memberships Market Poised for Strong Growth Driven by Air Travel Revival and Passenger Comfort Trends
The Airport Sleep Pod Memberships Market is witnessing robust expansion as travelers...
By Caitan Cruz 2025-10-27 08:43:41 0 1K
Aldyra https://aldyra.com