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
Jogos
Valorant Patch 11.07 – Key Updates & New Features
The latest update for Valorant, patch 11.07, has recently been released, bringing notable...
Por Xtameem Xtameem 2025-11-01 00:10:35 0 930
Jogos
Online Safety Act UK—Public Backlash & Petition Surge
UK's Online Safety Act Sparks Massive Public Backlash In a remarkable display of public...
Por Xtameem Xtameem 2025-12-02 00:35:43 0 473
Networking
The Science Behind Humic Acid and Plant Growth
The Humic acid is a naturally occurring organic compound found in soil, peat, coal, and...
Por Deady Cnm 2025-10-29 06:36:15 0 1KB
Jogos
Call of Duty: Mobile – Season 2 Updates & Rewards Guide
Despite facing some criticism over its microtransaction practices, Call of Duty: Mobile has...
Por Xtameem Xtameem 2026-01-01 11:53:14 0 140
Party
PREVIEW: Blackhawks System for Late Night time Matchup In opposition to Jets
Period: 8:00 p. set: NBCSCH | RADIO: WGN-720-AM | Flow: ESPN+HuluThe Blackhawks return against...
Por Manley Earnests 2025-09-22 03:45:26 0 2KB
Aldyra https://aldyra.com