Ubuntu: Upgrade FTP user to SFTP

0
26K

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.

Buscar
Categorías
Read More
Shopping
What is the price of an engagement ring?
Matching Couple Rings and engagement rings don't have the same meaning, however they are...
By Some Cats 2024-05-06 14:13:01 2 8K
Networking
compostable cutleries supplier Look at the numbers in the bottom triangle
compostable cutleries supplier Look at the numbers in the bottom triangle: No. 1 PET: Heat...
By Aldyracom Aldyracom 2024-05-21 06:09:37 0 7K
Networking
The Future of Online Engagement: The Importance of a Responsive Web Design Agency
In a world where digital devices are an extension of our daily lives, the demand...
By A1j International 2024-08-23 10:45:26 0 5K
Shopping
Golden Goose On Sale about making loved fashion really accessible
You know and know and everyone knows that fashion is not just about the things we wear but about...
By Margot Poole 2025-05-20 02:08:06 0 1K
Shopping
What channel is Chiefs vs. Cardinals on today Time TV schedule for NFL Week 1 game
TheChiefs begin the start of a new era of sorts Sunday, as they travel to Arizona for what they...
By Merl Treutel 2025-05-15 02:54:05 0 1K
Aldyra https://aldyra.com