Ubuntu: Upgrade FTP user to SFTP

0
24χλμ.

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.

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Sports
Cardinals Player Named Gold Glove Award Finalist As Nolan Arenado's Touch Ends
The St. Louis Cardinals have yet another finalist for a National League Gold Glove honor, this...
από Bryanc Ranston 2024-03-07 06:29:31 0 11χλμ.
Religion
forces helped to craft Golden Goose Sale a new trend by the mid decade
All her pieces are cut new from older, hand sourced denim, making each pair wholly unique. has...
από Birde Shah 2024-08-18 07:49:45 0 5χλμ.
Party
goes well with everything from polished penny Goyard to kitten
with a fit this silhouette goes well with everything from polished penny Goyard to kitten....
από Emerie Houston 2024-10-07 03:31:47 0 4χλμ.
άλλο
The Versatility of Flagging Tape: Uses, Pricing, and Importance
Flagging tape may sound like a simple tool, but its applications are vast and varied. From...
από Singhal Industries 2024-11-07 07:03:30 1 2χλμ.
Networking
Key points of anti-uv pet bottle packaging injection molding process
PET chemical name polyterephthalate ethanol ester, also known as polyester. At present, GF-PET is...
από Aldyracom Aldyracom 2024-08-29 05:50:41 0 4χλμ.