Ubuntu: Upgrade FTP user to SFTP

0
28KB

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
Dofus Unity : nouveautés et bêta – Présentation 2024
Après plusieurs années d’attente, la mise à jour majeure de Dofus sur...
Por Xtameem Xtameem 2026-02-04 15:17:04 0 391
Outro
Sausage Casings Market : Trends, Analysis, and Competitive Landscape 2025 –2032
This Sausage Casings Market report has been developed by analysing multiple segments of...
Por Data Bridge 2025-11-03 07:55:52 0 1KB
Outro
Automotive OEMs (Original Equipment Manufacturers) Market Growth, Opportunities, Industry Applications, Analysis and Forecast by 2031
The Automotive OEMs (Original Equipment Manufacturers)   Market research report has...
Por Janvi Mane 2025-12-03 11:19:09 0 1KB
Shopping
Eagles vs. Rams Week 2 odds picks Point spread total player props and bets to consider
The travel east to take on the in Week 2, as the former looks to prove they are a legitimate...
Por Merl Treutel 2025-05-15 02:44:12 0 3KB
Jogos
Russia's Digital Barriers: Roblox, FaceTime Banned
Russia's digital barriers intensify as regulators target popular online services Recent reports...
Por Xtameem Xtameem 2025-12-05 01:32:59 0 712
Aldyra https://aldyra.com