Ubuntu: Upgrade FTP user to SFTP

0
26K

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
Tom Brady reportedly played through foot injury on top of elbow issues towards the end of Patriots season
is starting his offseason earlier than expected this year. For the first time Taurean Prince...
Por Merl Treutel 2025-05-15 02:00:45 0 2K
Networking
Benefits of Using Cellulosic Man-made Fiber in Clothing and Home Textiles
The Cellulosic man-made fibers are produced by dissolving purified cellulose in...
Por Deady Cnm 2025-10-03 06:35:00 0 187
Shopping
presence in last Gucci year collections they're now decidedly
The biggest challenge is educating people on why our clothes are worth it compared to fast...
Por Priscilla Gamble 2024-12-02 11:23:31 0 3K
Crafts
Bridging Tech Literacy Gaps With Hands On Pet Care Training
As digital services expand into daily life, many senior pet owners find themselves navigating a...
Por Chloe Vincy 2025-08-25 07:29:55 0 1K
Fitness
Anavar (Oxandrolone) Blood Levels Increased by Caffeine
Caffeine (1,3,7-trimethylxanthine) is the world's most widely consumed drug and its ergogenic...
Por Ellen Green 2025-02-07 04:33:55 0 2K
Aldyra https://aldyra.com