Ubuntu: Upgrade FTP user to SFTP

0
28K

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
Oyunlar
Kodi Boxing Streams: Official Add-Ons Guide
Kodi provides an accessible platform for streaming live boxing events, bypassing traditional...
By Xtameem Xtameem 2025-12-24 00:46:58 0 486
Oyunlar
Cloudflare UK Streaming Block – New Anti-Piracy Move
Cloudflare has implemented a new measure targeting unauthorized streaming platforms within the...
By Xtameem Xtameem 2025-11-25 01:19:38 0 880
Oyunlar
Free Sports Streaming 2025 – Top Platforms & Tips
Top Streaming Options for 2025 Locating trustworthy platforms for free sports streaming in 2025...
By Xtameem Xtameem 2025-11-18 01:32:39 0 963
Oyunlar
Valorant Redeem Codes: Latest July 2024 Guide
Valorant Redeem Codes Overview Valorant has rapidly gained popularity as a competitive online...
By Xtameem Xtameem 2025-11-08 01:46:08 0 1K
Oyunlar
Hogwarts Roles: New Harry Potter Cast Shares Journey
Stepping into Hogwarts' legendary roles proved electrifying for three gifted young British...
By Xtameem Xtameem 2025-11-04 02:44:12 0 1K
Aldyra https://aldyra.com