Ubuntu: Upgrade FTP user to SFTP

0
26K

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.

Cerca
Categorie
Leggi tutto
Altre informazioni
Golden Goose Sneakers On Sale even a guide to dressing like
represent that aesthetic. You can keep things clean and classic with something from b Low the a...
By Margot Poole 2025-05-13 06:48:50 0 1K
Sports
Lynx Centre Jess Shepard toward Skip 2024 Period, Proceed Enjoying within Italy
The Minnesota Lynx introduced upon Wednesday afternoon that heart Jess Shepard will skip the full...
By Bichette Bichette 2025-07-28 07:15:02 0 441
Shopping
the notion Hermes Shoes that great clothes are great clothes
Working with her stylist and creative director Brett Alan Nelson, the duo started crafting the...
By Braelyn Arellano 2024-05-31 07:25:48 0 8K
Shopping
Saint Laurent Sale all have on our radars
EmRata Wore Sweats for a Possible Date With Pete Davidson In the most inevitable news of the week...
By Shiloh Copeland 2024-07-23 05:28:20 0 7K
Shopping
Carson Palmer facing fallout after ghastly playoff performance
CHARLOTTE, N.C. -- Of all the factors that led to the ' to the in Sunday's NFC Championship Game,...
By Merl Treutel 2025-05-15 02:09:01 0 1K
Aldyra https://aldyra.com