Ubuntu: Upgrade FTP user to SFTP

0
26KB

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
Shopping
Fabio Capello Why Im still sat on the fence
Along with scores of England fans around the country I sat glued to my web browser on the...
Par Merl Treutel 2025-05-15 02:00:15 0 2KB
Shopping
Turns out eve gets Golden Goose many of her items
Indeed, could goldensgoosesonsale.com not close my laptop on November without breaking down the...
Par Brylee Estrada 2025-07-21 09:00:10 0 1KB
Religion
Ariva Luxurious Houses Called Formal Luxurious Condo Lover of the Las Vegas Aces
LAS VEGAS The Las Vegas Aces nowadays declared Ariva Luxurious Properties as the Formal Luxurious...
Par Howard Brionnajon 2025-07-23 00:08:37 0 1KB
Shopping
more heavily into Loro Piana accessories and jewelry
you name it. The star seems to be relying on organic interest and fan traffic to kickstart the...
Par Jade Paul 2025-09-14 08:28:30 0 556
Autre
Hydrogen Hubs: Shaping the Future Energy Landscape
The energy sector is a key driver in stimulating world development, bridging economic development...
Par Priya Singh 2025-09-24 15:18:33 0 263
Aldyra https://aldyra.com