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.

Cerca
Categorie
Leggi tutto
Shopping
Preview Argentina v Mexico 2706 1930
Argentina versus Mexico in the last 16 of the World Cup, deja vu anyone? Just four years and...
By Merl Treutel 2025-05-15 03:02:35 0 929
Shopping
Saint Laurent Bags visit earlier this week
Dip your toe into icy blue waters this spring by way of matching suit vest and trousers, Jason...
By Rayna Walters 2024-09-08 06:58:45 0 5K
Shopping
Chiefs GM doesnt express any remorse over Kadarius Toney trade
general manager Brett Veach isn't losing any sleep over the team's decision to trade for Kadarius...
By Merl Treutel 2025-05-15 02:56:04 0 834
Shopping
last season Golden Goose Sneakers Sale bag trends are being carried
For the group stage looks, meanwhile, LE naturally had to deliver an epic coordinated fashion...
By Braelyn Arellano 2024-06-02 05:59:28 0 7K
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