Ubuntu: Upgrade FTP user to SFTP

0
25K

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.

Căutare
Categorii
Citeste mai mult
Shopping
Laser Rangefinder for Hunting and Bow Hunting Range Finder | Gogogo Sport
Laser Rangefinder for Hunting and Bow Hunting Range Finder Precision, Durability, and Innovation...
By Shinnytime Shinnytime 2024-10-25 08:49:04 0 3K
Shopping
Sherman Andrew Luck help their local communities
It's not long before NFL players report to their respective training camps, but more than a few...
By Merl Treutel 2025-05-15 02:22:12 0 791
Music
LẶT LÁ MAI, NHỚ TẾT VỀ
LẶT LÁ MAI, NHỚ TẾT VỀ     Một mùa mai nữa lại đến Mỗi khi chạm ngưỡng...
By Hohoaian Hoo 2025-05-20 06:50:27 0 925
Shopping
How old is Brock Purdy Where 49ers star ranks among youngest QBs in Super Bowl history
By now, you've heard that Brock Purdy was "Mr. Irrelevant" in the Reggie Jackson Jersey 2022 NFL...
By Merl Treutel 2025-05-15 02:51:36 0 763
Shopping
Bill Cowher Rex has made mockery of captain tag
Rex Ryan's decision to name special teamer a captain Thursday night Richard Dent Jersey against...
By Merl Treutel 2025-05-15 02:43:14 0 779