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.

Căutare
Categorii
Citeste mai mult
Shopping
The Opener Rangers Mariners Cole Pitchers Due
As the 2024 regular season continues, here are three things well be keeping an eye on around the...
By Ebony Ortiz 2025-11-18 01:50:55 0 151
Shopping
Golden Goose Shoes Sale moment curriculum
also has quite a few coveted handbags on the roster too like in textured, croc finish, plus...
By Finley York 2025-08-11 12:20:36 0 2K
Networking
Export and Domestic Use of Germany Sheet Metal
The Germany Sheet Metal is a key segment of the country’s industrial and...
By Deady Cnm 2025-10-14 16:45:10 0 769
Religion
Kreative Geburtstagswünsche mit ChatGPTDeutsch – So einfach geht’s!
Ein Geburtstag ist mehr als nur ein Datum – er ist ein besonderer Tag, an dem man Liebe,...
By Deutsch Info ChatGPT 2025-10-27 11:17:50 0 723
Shopping
Golden Goose and thoroughness in curating a program
One show will never forget is the fall show invited me. do not think it was necessarily his all...
By Adalynn Cunningham 2025-07-29 09:57:18 0 2K
Aldyra https://aldyra.com