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.

Suche
Kategorien
Mehr lesen
Spiele
Binge On: T-Mobile's Free Video Streaming
Many users spend significant amounts of their mobile data watching videos on popular streaming...
Von Xtameem Xtameem 2026-01-15 22:32:16 0 491
Spiele
Natus Vincere Returns: MPL ID Season 15 Roster Update
Natus Vincere (NAVI), a prominent name in Ukrainian esports, is making a strategic return to the...
Von Xtameem Xtameem 2025-12-24 12:34:50 0 635
Sports
Battle Red Blog Groupthink: Chiefs Loss and 2024 Season Wrap Up
Texans lose a hard fought game against the Chiefs. Wrap up the season and give me what you think...
Von Grissom Grissom 2025-05-22 03:06:58 0 3KB
Networking
Rising Demand for Polysilicon in Renewable Energy Applications
The material known as Polysilicon—also commonly called poly-crystalline silicon—is a...
Von Deady Cnm 2025-11-11 06:11:54 0 1KB
Andere
Capping-machine Supporting Multi-Sector Manufacturing
The packaging industry is rapidly evolving, requiring machinery that can meet diverse production...
Von sean zhang 2026-02-06 08:03:59 0 882
Aldyra https://aldyra.com