Ubuntu: Upgrade FTP user to SFTP

0
25K

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.

Căutare
Categorii
Citeste mai mult
Shopping
that was first published in and includes a Goyard Bags specific brand of nostalgic
The good news Lots of options means you can be highly selective in choosing a program that's...
By Mariah Rubio 2024-08-30 14:14:18 0 5K
Shopping
Buffalo Bills starting LB Terrel Bernard cleared to play against Denver Broncos
ORCHARD PARK, N.Y Darrell Armstrong Jersey . (AP) Buffalo Bills starting middle linebacker Terrel...
By Merl Treutel 2025-05-15 02:17:20 0 656
Shopping
Metalor Gold Bar 100g: A Premium Investment Choice
Gold bars have long been a trusted investment for those looking to secure their wealth with a...
By A1m Mint 2025-02-24 08:30:27 0 1K
Shopping
Chip Kellys polarizing Philadelphia Eagles My NFC East champs
Right now, there isn't a more fascinating, polarizing person in sports than Chip Kelly.Think...
By Merl Treutel 2025-05-15 02:40:18 0 662
Sports
Chicago Sky Indications Kahleah Copper in direction of Agreement Extension
The Chicago Sky presently declared safeguard/ahead Kahleah Copper consists of signed a multi-12...
By DeShields DeShields 2024-07-05 01:24:21 0 6K
Aldyra https://aldyra.com