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.

Zoeken
Categorieën
Read More
Spellen
Balenciaga Handbags needs to come back to life
Born as part of La Maison s renowned Magritte collection, L Humour MM offers an appropriately...
By Birde Shah 2024-08-07 10:12:58 0 6K
Shopping
the network for late night Loewe begins dressing for the job she wants
Number one is sustainability: fashion week has pledged to be fully zero by 2024 and eco...
By Remi Wells 2024-11-01 08:02:42 0 3K
Shopping
As much as I tried Celine to narrow it down to one
action with other fashion weeks around the globe is a key part of his strategy to expand the city...
By Remi Wells 2024-10-26 17:20:19 0 3K
Other
Rise to the Top: Bet on the UK’s Most Trusted Football Sites!
Rise to the Top: Bet on the UK’s Most Trusted Football Sites! For football enthusiasts...
By Nguyen Cuong 2024-12-21 01:49:19 0 2K
Shopping
Saint Laurent six months in preparation for the press tour
How it works each subscription allows to borrow six items at a time for a month. fashion week has...
By Adalynn Cunningham 2025-07-24 09:15:28 0 509
Aldyra https://aldyra.com