Ubuntu: Upgrade FTP user to SFTP

0
25K

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
Other
Superset Installation Ubuntu 22.04
pip install virtualenv   On Ubuntu 22.04 pip install flask==2.2.5 pip install...
By Saim Safdar 2024-02-06 17:34:14 0 16K
Shopping
Universidad de Chile join the big guns in the Copa Libertadores semi finals.
Universidad de Chile moved into the Copa Libertadores last 4 by overcoming La Libertad 5-3 on...
By Merl Treutel 2025-05-15 02:13:51 0 800
Shopping
to future fads Cheap Hermes Bags may seem to democratize fashion
It not actually. The top 12 trends of the fall season which range from cozy to cubist and are...
By Novalee Moran 2025-07-09 07:13:13 0 290
Fitness
house latest collections Miu Miu Sale styling sessions and
loved the soft pink color and the A line silhouette, with the surprising gathers in the back, she...
By Sienna King 2025-06-19 07:56:52 0 701
Other
A Detailed Guide to Mastering English Football Odds Analysis Today
A Detailed Guide to Mastering English Football Odds Analysis Today In the world of online...
By Wintips123 Wintips123 2025-01-20 07:37:37 0 2K
Aldyra https://aldyra.com