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
Tom Brady picks Buccaneers Heres the reason Brady reportedly decided not to play for the Chargers
With the official start of free agency just hours away, hasn't officially picked a team to play...
By Merl Treutel 2025-05-15 02:31:28 0 1K
Shopping
sustainability requirements it Saint Laurent Outlet has implemented
I always get a little nervous packing my as the mere thought of them being crushed is enough to...
By Priscilla Gamble 2025-01-12 05:09:34 0 2K
Shopping
Broncos unable to come to an agreement with Clay Matthews but former All-Pro remains open to playing in 2020
, a six-time Pro Bowl pa s rusher who was waived by the in March, was unable to come to an...
By Merl Treutel 2025-05-15 03:03:34 0 2K
Other
Best Digital Agency That Drives Revenue Online
Looking for the Best Digital Agency |Digital Agency Services | marketing digital agency | ...
By Blaise Tech Pro 2024-10-07 02:29:14 0 5K
Other
Guide Pour Rédiger Des Lettre D’Appel De Fonds
Introduction Aux Lettre D’Appel De Fonds  Les principes de base de la création...
By Gulshan Whydonate 2024-11-07 15:15:48 0 6K