Ubuntu: Upgrade FTP user to SFTP

0
27Кб

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
Jerry Jeudy arrested What charges of criminal tampering domestic violence mean for Broncos WR
Jerry Jeudy was released on bond from a Denver jail Friday, a day after Arapahoe County Sheriff's...
От Merl Treutel 2025-05-15 02:07:34 0 2Кб
Игры
Monopoly GO Round Board – New Gameplay Features Explained
Monopoly GO has recently introduced an innovative twist to its gameplay with the addition of a...
От Xtameem Xtameem 2025-10-31 02:26:16 0 901
Networking
Tips for Recognizing Bookmakers' Trap Bets
Tips for Recognizing Bookmakers' Trap Bets As a football bettor, surely you're familiar with the...
От Phoco Phocohanoi2 2025-03-04 06:54:27 0 3Кб
Другое
Electron Beam Irradiation Service for Medical Market Growth, Opportunities, Industry Applications, Analysis and Forecast by 2031
The Electron Beam Irradiation Service for Medical Market research report has been crafted with...
От Janvi Mane 2025-11-13 12:58:36 0 823
Игры
Capital One Anti-Phishing Strategy: User Concerns
Concerns Arise Over Capital One's Anti-Phishing Communication Strategy Credit card giant Capital...
От Xtameem Xtameem 2025-10-29 04:14:55 0 911
Aldyra https://aldyra.com