Ubuntu: Upgrade FTP user to SFTP

0
27χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Παιχνίδια
MrBeast Empire Expands – Corie Henson Named Studio President
MrBeast Empire Expands: Industry Veteran Corie Henson Joins as Studio President In a significant...
από Xtameem Xtameem 2025-11-03 02:57:05 0 908
Παιχνίδια
iTunes Gift Card Scams – How to Spot and Avoid Them
Scammers are always after one thing: quick cash. Their tactics are designed to make payments as...
από Xtameem Xtameem 2025-12-03 06:36:33 0 445
Shopping
homewares offering was revealed in Goyard Sale a series of rooms
uses his collections as platforms to examine the Black experience in the United States. It's...
από Mariah Rubio 2024-08-27 13:26:40 0 8χλμ.
άλλο
Fire Truck Market to Reach USD 16.72 Billion by 2033, Growing at a CAGR of 4.3%
Market Overview The global fire truck market size was valued at USD 11.42 billion in...
από Mahesh Chavan 2025-11-03 08:09:04 0 1χλμ.
Παιχνίδια
Pride Month: Emi 'Captain Fluke' in Esports Spotlight
Throughout Pride Month, the gaming community continues to spotlight stories that challenge...
από Xtameem Xtameem 2025-10-31 01:45:41 0 872
Aldyra https://aldyra.com