Ubuntu: Upgrade FTP user to SFTP

0
27KB

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
Shopping
Goyard label for giraffe at Paris fashion week in displaying
As a trans woman I remember first learning to from the waist up; all it took was learning my...
Por Emilia Hurley 2024-09-27 09:45:44 0 6KB
Jogos
Adobe Security Alert: JavaScript Threat in PDFs
Adobe Security Alert: JavaScript Vulnerability Threatens PDF Users Adobe has confirmed a security...
Por Xtameem Xtameem 2025-10-31 02:37:25 0 514
Shopping
Loro Piana On Sale a huge part of the success of the store and the innovation
Yes you read that correctly. In a surreal touch am attending a simulacrum of the ceremony in the...
Por Finley York 2025-08-13 07:56:50 0 2KB
Jogos
Balenciaga Handbags needs to come back to life
Born as part of La Maison s renowned Magritte collection, L Humour MM offers an appropriately...
Por Birde Shah 2024-08-07 10:12:58 0 7KB
Jogos
Producer Credit Conflicts—Awards Season Rules Tighten
Awards season brings producer credit conflicts into sharp focus as guilds enforce strict...
Por Xtameem Xtameem 2025-11-21 00:17:12 0 147
Aldyra https://aldyra.com