Ubuntu: Upgrade FTP user to SFTP

0
25KB

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.

Suche
Kategorien
Mehr lesen
Shopping
Texans OL David Quessenberry eyes return from cancer
continues to work out with his team, attend meetings and train to return to the football field....
Von Merl Treutel 2025-05-15 02:04:38 0 740
Shopping
have to always do the Valentino most you don't always have
Otherwise I'll be relying on my Hourglass pressed powder compact and new steam to keep my makeup...
Von Sierra Cherry 2024-11-29 06:55:04 0 2KB
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...
Von Merl Treutel 2025-05-15 02:17:20 0 745
Shopping
Jimmy Garoppolo landing spots Commanders Broncos among best fits for 49ers quarterback in 2022
Jimmy GQ is walking the runway for his next squad.Jimmy Garoppolo and the 49ers are heading for a...
Von Merl Treutel 2025-05-15 02:21:43 0 780
Shopping
Heroes Villains Peyton fans thrive Rex stumbles
If Week 2 taught us anything, it was this: Week 1 taught us nothing.Nothing, at least, that...
Von Merl Treutel 2025-05-15 02:15:18 0 762
Aldyra https://aldyra.com