Ubuntu: Upgrade FTP user to SFTP

0
25Кб

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.

Поиск
Категории
Больше
Shopping
Jeremiahs top 50 D.J. Humphries among 11 newcomers on list
NFL Media analyst Daniel Jeremiah has released his , and while USC defensive end remains the No....
От Merl Treutel 2025-05-15 02:33:56 0 703
Shopping
Reaction to Ed Reed retirement Reaction to Ed Reed retirement
Former All-Pro safety Ed Reed announced his on Wednesday, drawing NFL players to praise Reed...
От Merl Treutel 2025-05-15 02:25:38 0 739
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...
От Merl Treutel 2025-05-15 03:02:35 0 894
Shopping
steps fashion week could Dior take to increase its international reach
And with four collections a year of three deliveries each we made a lot of them. when I first...
От Priscilla Gamble 2024-12-19 06:34:23 0 2Кб
Shopping
collaborating with Christian Louboutin Shoes the likes of For his first outing
At his debut collection for last year, unveiled his vision for the house primarily through one...
От Rayna Walters 2024-09-09 07:48:08 0 5Кб
Aldyra https://aldyra.com