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.

Search
Categories
Read More
Other
Golden Goose On Sale as two very different entities
for some those interactions serve as a way to experiment not just with style but identity. with...
By Margot Poole 2025-05-08 07:10:04 0 3K
Shopping
Cam Akers didnt expect to have limited role in Rams opener Im going to learn from it
Cam Akers had one of the most disappointing outings of his career in Week 1 of the 2022 NFL...
By Merl Treutel 2025-05-15 02:06:35 0 2K
Shopping
Hermes Sneakers the most castizo barrios meaning classical
It speaks of flowers that grow over the graves of the dead, explained. hasn't hit the since,...
By Braelyn Arellano 2024-06-04 07:09:59 0 9K
Home
Regional Outlook: North America, Europe, Asia-Pacific, and Global Car Accessories Market Forecast 2025–2032
The automobile sector is still one of the most crucial sectors shaping industrial as well as...
By Riya Patil 2025-10-23 14:23:39 0 1K
Games
Mobile Legends: старт чемпионата EECA — детали
Старт нового сезона Mobile Legends: Bang Bang Continental Championships запланирован на ближайшие...
By Xtameem Xtameem 2025-11-12 04:01:47 0 726
Aldyra https://aldyra.com