Ubuntu: Upgrade FTP user to SFTP

0
26χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Παιχνίδια
MMOWOW Shop: Exclusive Instant Deals for BIGO Live Recharge
In the fast-paced realm of BIGO Live, where every moment of interaction counts—whether...
από Lin Xiao 2025-08-19 02:22:57 0 753
Shopping
the theatre world AAA Hermes Bags in June and at show
may be onto something here for your next holiday party You can replicate the naked look without...
από Novalee Moran 2025-07-11 12:31:18 0 998
Shopping
Saint Laurent Bags visit earlier this week
Dip your toe into icy blue waters this spring by way of matching suit vest and trousers, Jason...
από Rayna Walters 2024-09-08 06:58:45 0 6χλμ.
Health
Whatsapp +97433711266 buy thc e liquid vape oil online in Australia
Whatsapp +97433711266 buy thc e liquid vape oil online in Australia  CBD oil Qatar, CBD oil...
από Mohammed Saad 2025-08-15 05:47:29 0 484
Shopping
GGDB Shoes photographed in leather pants made to look like
And with good reason according to an official Request For Data and Information on Trinidad and...
από Shiloh Copeland 2024-07-25 08:21:43 0 7χλμ.