Ubuntu: Upgrade FTP user to SFTP

0
27KB

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
Nach Verein filtern
Read More
Other
Global Circuit Breaker Market Size & Forecast
Circuit Breaker Market – Explores global market expansion driven by industrial automation...
Von Rupali Wankhede 2025-10-13 12:09:06 0 436
Other
Procedure Trays Market Dynamics: Trends, Demand Shifts & Future Outlook
"Global Executive Summary Procedure Trays Market: Size, Share, and Forecast The global...
Von Danny King 2025-10-10 09:38:43 0 565
Shopping
Understanding 200 Grams of Gold Price: A Smart Investor’s Guide
Gold has long been seen as a reliable store of value, especially during times of...
Von A1m Mint 2025-05-17 08:26:12 0 2KB
Shopping
How old is Brock Purdy Where 49ers star ranks among youngest QBs in Super Bowl history
By now, you've heard that Brock Purdy was "Mr. Irrelevant" in the Reggie Jackson Jersey 2022 NFL...
Von Merl Treutel 2025-05-15 02:51:36 0 2KB
Other
Next-Gen Energy Storage Battery Solutions for Sustainable Power Systems
Energy storage battery solutions - Energy storage battery solutions play a crucial role in...
Von Rupali Wankhede 2025-10-31 10:26:55 0 9