Ubuntu: Upgrade FTP user to SFTP

0
24K

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.

Search
Categories
Read More
Shopping
in on the fun we dug Hermes the best early aughts trends from what
It's my story that he was in. While almost every woman outlines the importance of breathing room...
By Henley Pierce 2024-11-12 05:52:58 0 2K
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...
By Sierra Cherry 2024-11-30 11:11:09 0 1K
Other
Marlins introduce 2024 mentoring team
MIAMI Adhering to the announcement of front-office hires Tuesday, the Marlins on Friday revealed...
By Chad Fortners 2024-07-31 03:16:38 0 4K
Other
Serie A Football Betting Tips: Secure Your Profits Today
Serie A Football Betting Tips: Secure Your Profits Today Serie A betting tips involve analyzing...
By Wintips123 Wintips123 2025-02-10 07:22:21 0 577
Other
let back up for a minute Hermes and explain how I came to be here
the challenge now is to channel the attention into sales and help emerging labels become bonafide...
By Remi Wells 2024-10-20 06:26:25 0 3K