Ubuntu: Upgrade FTP user to SFTP

0
27K

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
Health
Whatsapp +97433711266 Buy #Lyrica #Pregabalin Online in #UAE #Dubai #AbuDhabi #Sharjah
Whatsapp +97433711266 Buy #Lyrica #Pregabalin Online in #UAE #Dubai #AbuDhabi #Sharjah CBD oil...
Por Mohammed Saad 2025-08-15 06:15:10 0 1K
Outro
Strategic Partnerships and M&A in the Potato Flakes Industry
The food and drink sector responds in real time to changing consumer requirements and innovations...
Por Priya Singh 2025-09-16 15:41:35 0 672
Health
Whatsapp +97433711266 Where to Buy Pure CBD vape Oil in #Dubai #Abudhabi UAE
Whatsapp +97433711266 Where to Buy Pure CBD vape Oil in #Dubai #Abudhabi UAE  CBD oil Qatar,...
Por Mohammed Saad 2025-08-15 05:53:39 0 1K
Party
Motion picture Examine: Cam Ward's 2023 year
The Miami Hurricanes consist of identified their person at the quarterback issue, and it's...
Por Carthy Carthy 2024-09-19 00:34:02 0 5K
Outro
Unlocking Potential Through the US Data Management Platform Market
  The US Data Management Platform Market growth continues to accelerate as organizations...
Por Sssd Ddssa 2025-09-24 03:56:09 0 609