Ubuntu: Upgrade FTP user to SFTP

0
24K

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.

Pesquisar
Categorias
Leia Mais
Dance
UConn womens basketball topples Georgetown, 85-44
UConn womens basketball stayed great inside meeting enjoy with a 85 41 victory more than...
Por Bregman Alex 2024-10-09 08:55:52 0 3K
Shopping
rather hibernate Tdsshoes than deal with frigid temps and sunsets
Over 1.5 million trees have been planted so far, a third of which have gone to the rainforest....
Por Priscilla Gamble 2024-11-28 14:06:49 0 1K
Outro
Serie A Football Betting Tips: Secure Your Profits Today
Serie A Football Betting Tips: Secure Your Profits Today Serie A betting tips involve analyzing...
Por Wintips123 Wintips123 2025-02-10 07:22:21 0 643
Networking
year when sales are just Saint Laurent Handbags popping up out
The Best Airport Outfits As it turns out, what you wear to the airport can actually lead to an...
Por Emily Crane 2024-07-16 06:51:13 0 6K
Networking
JaguarsTrevor Lawrence and Foye Oluokun satisfy with media pre-NFL Draft
With the NFL Draft instant upcoming, the Jacksonville Jaguars' voluntary offseason software...
Por Staubach Mcgriffs 2024-09-20 01:06:50 0 3K