Ubuntu: Upgrade FTP user to SFTP

0
24KB

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.

Rechercher
Catégories
Lire la suite
Shopping
only two ever made at Louis Vuitton Outlet the Vanity Fair s after party
Despite becoming a group just two years ago, is already achieving major career highs including...
Par Matilda Leonard 2024-06-20 10:31:08 0 6KB
Domicile
Classification and characteristics of EPDM rubber sheets
In the industrial industry, EPDM rubber sheet is mainly used in anti-corrosion, wear...
Par Aldyracom Aldyracom 2024-04-17 07:42:05 0 8KB
Autre
collection was characterized by Saint Laurent Handbags exacting tailoring
In culture he explains women run the show. Around years ago the hat seemed to be Saint Laurent...
Par Remi Wells 2024-10-18 08:04:22 0 3KB
Autre
Digital Marketing Agency in Cameroon
Digital Marketing Agency in Cameroon | Digital Marketing Agency Services | Cheap Digital...
Par Blaise Tech Pro 2024-10-07 02:35:46 0 4KB
Networking
How to bet on Understand Different Types of Bets
How to bet on Understand Different Types of Bets Winning at bet tips soccer involves more than...
Par Phoco Phocohanoi2 2025-01-06 02:20:04 0 902