Ubuntu: Upgrade FTP user to SFTP

0
28KB

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.

Rechercher
Catégories
Lire la suite
Jeux
Fang aus dem Meer des Wissens: Schatztruhe finden
Verborgene Schatztruhe finden Um den Erfolg "Fang aus dem Meer des Wissens" zu erlangen, musst...
Par Xtameem Xtameem 2026-02-11 11:19:31 0 238
Shopping
Manchester City Arsenal tactical preview
This Saturdays encounter between Manchester City and Arsenal is likely to prove a fascinating...
Par Merl Treutel 2025-05-15 03:03:04 0 3KB
Jeux
Carmen Sandiego - Returns on Netflix
Iconic Educational Character Carmen Sandiego Returns on Netflix The elusive master thief in the...
Par Xtameem Xtameem 2026-01-28 02:45:21 0 408
Networking
Benefits and Risks of Using Creosote Oil in Industrial Processes
The Creosote oil is a dark, oily liquid derived from the distillation of coal tar or...
Par Deady Cnm 2025-10-23 06:03:36 0 1KB
Jeux
The Diplomat Season 2 – Intense Opening Sequence Revealed
Intense Opening Sequence Season two of The Diplomat launches viewers directly into heart-pounding...
Par Xtameem Xtameem 2025-11-22 02:52:14 0 871
Aldyra https://aldyra.com