Ubuntu: Upgrade FTP user to SFTP

0
25χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Shopping
Florida Region Nullifies Star Rankings with Proof & Practical experience
 It does contain 2 enormous gains despite the fact that. To start with, your self put on't...
από Carthy Carthy 2024-09-19 00:33:05 0 4χλμ.
άλλο
Digital Marketing Agency in Cameroon
Digital Marketing Agency in Cameroon | Digital Marketing Agency Services | Cheap Digital...
από Blaise Tech Pro 2024-10-07 02:35:46 0 4χλμ.
Networking
What do you come into contact with in your daily life? maintenance for automatic cnc pipe end forming machines?
The domestic industry should catch up with the technological level of foreign countries,...
από Aldyracom Aldyracom 2024-08-29 07:46:38 0 5χλμ.
Παιχνίδια
Monopoly Go Account Guide Answers to All the You Need to Know
monopoly go cards, a popular board game for mobile devices will require players to control their...
από Some Cats 2025-04-07 06:01:45 0 1χλμ.
Shopping
but when the Dior week aligns with a great weather forecast
You can resist it all you like but fashion is here to stay and it got the haute couture treatment...
από Remi Wells 2024-10-16 06:03:49 0 4χλμ.