Ubuntu: Upgrade FTP user to SFTP

0
28Кб

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
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...
От Merl Treutel 2025-05-15 02:43:14 0 3Кб
Игры
PUBG Mobile Esports: 2026 Roadmap Revealed
The PUBG Mobile esports scene is set to undergo a significant transformation in 2026, with the...
От Xtameem Xtameem 2025-12-21 09:36:49 0 747
Игры
Duet Night Abyss – Free RPG Launch & Game Overview
Game Overview Embark on an expansive adventure with the newly launched free-to-play hybrid...
От Xtameem Xtameem 2026-01-28 02:32:37 0 506
Другое
I have this chain necklace that we call Hermes the bike lock
This isn't the first time that has outed herself as a fan, either. But once I got on stage, I...
От Dani Rodgers 2025-10-15 04:01:09 0 2Кб
Игры
Arc Raiders Firefly Guide – Ride or Risk the Backrooms?
In the recent Shrouded Sky update for Arc Raiders, players encountered a new flying foe known as...
От Xtameem Xtameem 2026-03-05 19:05:43 0 321
Aldyra https://aldyra.com