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.

Rechercher
Catégories
Lire la suite
Autre
How to Bet on Football Without Losing – 3 Superior Strategies
  1. Analyzing the Odds: To analyze football odds accurately and effectively, players need...
Par TRAN KHOA 2024-11-19 04:30:29 0 3KB
Jeux
Netflix Stand-Up Special: Burn the Boats Review
In a boisterous opening to his Netflix stand-up special debut, the controversial media...
Par Xtameem Xtameem 2025-10-29 03:43:40 0 62
Autre
Cooking Class Barcelona: Learning Beyond Recipes
Introduction A cooking class Barcelona experience is more than just following...
Par Gastronomic Arts Barcelona 2025-08-26 16:45:05 0 1KB
Shopping
and spent time and Goyard money to test these firsthand
I listened to dozens of opinions from friends, sifted through hundreds of customer reviews, and...
Par Sierra Cherry 2024-11-25 04:51:26 0 4KB
Jeux
Zenless Zone Zero Nendoroids – Belle & Wise angekündigt
Die Good Smile Company hat kürzlich die bevorstehende Veröffentlichung von Nendoroids...
Par Xtameem Xtameem 2025-10-31 02:51:01 0 16