Ubuntu: Upgrade FTP user to SFTP

0
26χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Networking
Challenges in Installing and Maintaining China Fencing
The China Fencing is a rapidly growing sector within the country’s construction...
από Deady Cnm 2025-09-26 06:55:53 0 288
άλλο
An Overview of the Generative AI in Media and Entertainment Market
  The Generative AI in Media and Entertainment Market over time has evolved from a...
από Sssd Ddssa 2025-10-08 04:26:00 0 79
Shopping
Tom Brady picks Buccaneers Heres the reason Brady reportedly decided not to play for the Chargers
With the official start of free agency just hours away, hasn't officially picked a team to play...
από Merl Treutel 2025-05-15 02:31:28 0 2χλμ.
άλλο
Portable Grinders Market Forecast Predictions for the Next Five Years
The portable grinders market forecast indicates a positive growth trajectory over the next...
από Mayuri Kathade 2025-09-11 10:48:53 0 487
Shopping
Discover the Artistry of Indian Jewellery Choker Sets: A Fusion of Royalty and Style
When tradition meets glamour, the result is the breathtaking indian jewellery choker...
από A1j Jewellers 2025-05-17 10:34:27 0 2χλμ.
Aldyra https://aldyra.com