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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Παιχνίδια
FC 26 Update 1.5.0: Passspiel-Veränderungen
EA SPORTS hat das versprochene Update für FC 26 veröffentlicht. Mit Version 1.5.0...
από Xtameem Xtameem 2026-03-10 05:01:45 0 192
άλλο
Rising Demand for Anti-Aging and Sensitive Skin Products Supports 5.55% CAGR
The global skincare industry has experienced remarkable evolution over the past decade, with...
από Tejas Kudale 2026-01-05 10:49:44 0 570
Παιχνίδια
Trennungen in Honkai Star Rail - Schwestern & Titus
Trennungen in Honkai Star Rail In der faszinierenden Welt von Honkai Star Rail gibt es zahlreiche...
από Xtameem Xtameem 2026-02-06 00:11:33 0 422
Παιχνίδια
Diablo 4 Season 7 Guide – Witchcraft, Patch 2.1.3
Season 7, themed the "Season of Witchcraft," has been ongoing for a while now. Throughout this...
από Xtameem Xtameem 2025-11-27 03:48:57 0 888
άλλο
Driving Innovation Through Predictive Analytics Market Expansion
  The Predictive Analytics Market growth is redefining the way enterprises approach...
από Sssd Ddssa 2025-09-24 05:32:27 0 2χλμ.