Ubuntu: Upgrade FTP user to SFTP

0
28K

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
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 6K
Jogos
Pandabuy Data Breach: 1.3M Customers Exposed
Data Security Breach Exposes Personal Information of Over 1.3 Million Pandabuy Customers In a...
Por Xtameem Xtameem 2026-02-12 02:50:46 0 407
Outro
Online Poker Market Share, Size and Competitive Landscape Report 2030
Future of Online Poker Market: Key Dynamics, Size & Share Analysis The Global Online...
Por Jackson Harris 2025-10-16 09:51:53 0 2K
Jogos
Genshin Impact: Geistersuche im Friedhof
Geistersuche im Friedhof Wenn du im Genshin Impact Support Squad auf Beschwerden...
Por Xtameem Xtameem 2025-12-23 09:22:17 0 671
Jogos
Verizon Fios Outage: Router Failure Disrupts Network
A network disruption affecting Verizon’s high-speed internet services, including Fios fiber...
Por Xtameem Xtameem 2025-12-25 00:40:53 0 562
Aldyra https://aldyra.com