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
Jocuri
FFWS 2025 Global Finals Knockout Stage: Key Details
The upcoming FFWS 2025 Global Finals Knockout Stage promises to be an intense showdown in the...
By Xtameem Xtameem 2025-10-31 03:13:40 0 364
Alte
Brazil Catering Market Size, Share & Forecast Analysis to 2030
Brazil Catering Market Size & Insights According to MarkNtel Advisors study The future...
By Rozy Desoza 2025-10-22 16:26:13 0 604
Alte
Apache Airflow Installation on Ubuntu w/ Cloud Panel
Main Resource:...
By Saim Safdar 2024-02-04 18:52:26 1 18K
Shopping
An early chance for Kane to justify Bundesliga move above Premier League riches
Although he never publicly stated it, Harry Kanes desire to leave Spurs in search of trophies at...
By Merl Treutel 2025-05-15 02:22:42 0 2K
Alte
Automotive Refinish Coatings Market: Key Players and Their Strategies
Emerging economies are rapidly transforming the global landscape of the automotive refinish...
By Ram Vasekar 2025-09-16 12:14:36 0 895
Aldyra https://aldyra.com