Ubuntu: Upgrade FTP user to SFTP

0
27K

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
Jocuri
EU Social Media Ban for Under-16s: Key Updates
The European Union is actively exploring the implementation of a ban on social media use for...
By Xtameem Xtameem 2025-12-01 01:08:59 0 389
Sports
7/25 Gamethread: Giants vs. A's
After 11 roadway games in 11 days in four cities, the San Francisco Giants are finally back in...
By Barlow Barlow 2025-08-01 08:59:09 0 2K
Alte
Asia-Pacific Teleradiology Market Growth and Investment Outlook
Among the most dependable areas of healthcare investment stands the...
By Priya Singh 2025-10-29 03:21:47 0 867
Jocuri
Producers Guild Awards: Moulin Rouge Wins Top Honor
In a surprising development this awards season, the Producers Guild of America has awarded its...
By Xtameem Xtameem 2025-11-20 04:15:31 0 591
Jocuri
The Late Afternoon Drama – Remembering a TV Icon
The Late Afternoon Drama: Remembering a TV Phenomenon Those familiar with 1990s television...
By Xtameem Xtameem 2025-12-09 03:58:07 0 214