Ubuntu: Upgrade FTP user to SFTP

0
26Кб

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
What channel is Chiefs vs. Cardinals on today Time TV schedule for NFL Week 1 game
TheChiefs begin the start of a new era of sorts Sunday, as they travel to Arizona for what they...
От Merl Treutel 2025-05-15 02:54:05 0 1Кб
Shopping
Golden Goose Shoes Sale his back in wingspan fashion
The very first time that visited New York City, people could still smoke in planes, the designer...
От Braelyn Arellano 2024-05-30 05:29:14 0 7Кб
Shopping
wearing them on a Gallery Dept T Shirts Sale walk in New York City
Feathery, luscious fringe dresses, minimal prints, and lotus flower hems took the runway as the...
От Braelyn Arellano 2024-05-31 05:01:39 0 8Кб
Gardening
The Newest Collections Prada Shoes
The Newest Collections Prada Shoes https://www.pradassaler.com
От Kailani Robles 2025-06-18 08:54:12 0 1Кб
Shopping
Franck Muller Vanguard Smurfette Limited Edition Watches
Franck Muller Launches Vanguard Smurfette Limited Edition Watches       The...
От Yexra Yexra 2025-07-24 07:06:37 0 996