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
Celine by student pieces which he saw in the exhibition
a labor revolution that happening everywhere from media companies those behind the bill want to...
By Emilia Hurley 2024-09-29 09:51:25 0 4K
Shopping
Top 50 Sounds 50-41 Top 50 Sounds 50-41
Sound represents the very e sence of the NFL, and nobody understands that better than Bose. As we...
By Merl Treutel 2025-05-15 02:14:49 0 473
Sports
MRI upon Blake Snell's shoulder demonstrates no structural destruction
"Yamamoto's splitter is the optimum rewarding splitter in just the Majors thus much. It's...
By Grissom Grissom 2025-05-22 03:07:32 0 518
Health
What Are the Most Effective Medications for Managing Chronic Back and Nerve Pain?
Introduction Chronic back pain and nerve discomfort affect millions globally, reducing quality of...
By Jhron Borthen 2025-06-11 08:34:02 0 73
Party
Softball Drops 1st Pac-12 Collection within Eugene
The up coming 2 batters obtained out and it appeared with 2 outs and no just one upon foundation...
By Carthy Carthy 2024-09-19 00:35:32 0 4K
Aldyra https://aldyra.com