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
Sports
Blue Jays 2, Purple Sox 1: Offense where by?
The Purple Sox exactly shed a extremely gross sport wherever they hardly strike everything and...
Von Grissom Grissom 2025-05-22 03:07:56 0 539
Networking
Sharing the basic parameter characteristics of the 36mm planetary gearbox wholesale disc
Reduction ratio: The input speed of the 36mm planetary gearbox wholesale is higher than...
Von Aldyracom Aldyracom 2024-09-09 08:01:14 0 4KB
Shopping
UFL schedule Week 1 What football games are on today TV channels times scores
WATCH THE UFL ALL SEASON LONG WITH A FREE TRIAL fubo Spring football is back, and the Dee...
Von Merl Treutel 2025-05-15 02:28:32 0 396
Party
How much blame goes to Derek Shelton for Pirates inadequate efficiency?
However whatever the machinations of the front workplace might be, Derek Shelton can not allow...
Von Wilkins Wilkins 2024-07-23 03:49:15 0 5KB
Shopping
prestigious reputation Loewe for excese in the arts so it only makes sense
I think for a freelancer I do feel quite proud of. As a whole pratt Institute has a prestigious...
Von Sierra Cherry 2024-11-30 11:11:09 0 2KB
Aldyra https://aldyra.com