Ubuntu: Upgrade FTP user to SFTP

0
27K

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.

Site içinde arama yapın
Kategoriler
Read More
Networking
Risk Assessment and Emergency Response for Mining Explosives
The Mining explosives are specialized energetic materials and systems engineered to...
By Deady Cnm 2025-10-10 06:58:08 0 1K
Oyunlar
DCE Tactiques Funéraires FC 26 – Guide et Solutions
Pour progresser efficacement dans Ultimate Scream, il est essentiel de compléter toutes...
By Xtameem Xtameem 2025-10-31 03:40:25 0 977
Other
Kuwait Catering Services Market Size, Share & Forecast Analysis to 2030
Kuwait Catering Services Market Size & Insights According to MarkNtel Advisors study...
By Rozy Desoza 2025-10-22 16:11:02 0 1K
Shopping
Atlanta Falcons complete a second interview with former Patriots coach Bill Belichick
ATLANTA (AP) Bill Belichick completed his second coaching interview with the Atlanta Falcons on...
By Merl Treutel 2025-05-15 02:54:35 0 2K
Shopping
Loro Piana On Sale a huge part of the success of the store and the innovation
Yes you read that correctly. In a surreal touch am attending a simulacrum of the ceremony in the...
By Finley York 2025-08-13 07:56:50 0 2K
Aldyra https://aldyra.com