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.

Pesquisar
Categorias
Leia mais
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...
Por Merl Treutel 2025-05-15 02:43:14 0 3KB
Jogos
Lynae Team Strategies – Wuthering Waves Guide
Team Strategies for Lynae Lynae stands out as a versatile character in Wuthering Waves, capable...
Por Xtameem Xtameem 2025-12-31 05:51:46 0 504
Outro
Global Ibuprofen Market 2026-2033 | Industry Trends, Growth, and Forecast
The Ibuprofen Market is witnessing significant expansion as global demand for over-the-counter...
Por Caitan Cruz 2026-02-13 12:43:54 0 352
Outro
AI-Powered Custom Fit and Personalization Boost Jean Market Growth
The global denim industry is witnessing steady growth, fueled by evolving fashion trends and...
Por Tejas Kudale 2025-12-31 11:16:04 0 579
Jogos
Marvel Rivals Season 5 – Rogue & Gambit Revealed
Season 5 Announcement Netease has unveiled exciting news for Marvel Rivals enthusiasts,...
Por Xtameem Xtameem 2025-11-11 00:16:21 0 1KB
Aldyra https://aldyra.com