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.

Căutare
Categorii
Citeste mai mult
Alte
Forecasts Shaping the US IoT Analytics Market
  The US IoT Analytics Market forecasts indicate a transformative journey for enterprises...
By Sssd Ddssa 2025-10-03 06:50:48 0 1K
Jocuri
US Netflix in Spain – Unlock Access with a VPN Guide
Unlocking US Netflix in Spain Struggling to access your favorite US Netflix shows while in...
By Xtameem Xtameem 2025-12-10 00:27:59 0 309
Shopping
Top 50 Sounds 50-41 Top 50 Sounds 50-41
Sound represents the very e sence of the NFL, and nobody understands that better than Bose. As we...
By Merl Treutel 2025-05-15 02:14:49 0 2K
Jocuri
Pitching in MLB The Show 25: Best Interfaces & Tips
Mastering Pitching Techniques Mastering pitching in MLB The Show 25 involves choosing the right...
By Xtameem Xtameem 2025-10-29 09:36:34 0 961
Shopping
Fan at Red Sox game dumps milk all over their head in wild celebratio
Got milk? One Red Sox fan had a gallon of it. Or at least he did Saturday until Jarren Duran...
By Ebony Ortiz 2025-11-18 02:03:58 0 704
Aldyra https://aldyra.com