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
Shopping
the outside and it comes Dior from the support from
we took a very concept modernized it and expanded the friend group to borrow from. Even years...
By Genesis Nguyen 2025-07-20 08:15:57 0 1K
Alte
Are Yuanda Clean Room Windows Suitable for High-Security Facilities
In facilities where contamination risk is high, the Clean Room Window from yd-purification is...
By ydpurification ydpurification 2025-10-21 01:39:56 0 299
Shopping
An early chance for Kane to justify Bundesliga move above Premier League riches
Although he never publicly stated it, Harry Kanes desire to leave Spurs in search of trophies at...
By Merl Treutel 2025-05-15 02:22:42 0 2K
Jocuri
Time Warner Cable Outage: DNS Attack Disrupts Service
Time Warner Cable customers endured erratic online access as hackers besieged DNS infrastructure...
By Xtameem Xtameem 2025-10-31 02:04:42 0 25
Jocuri
Marvel Rivals Season 3 Leak: New Heroes & Features Revealed
As Marvel Rivals progresses into its current 2.5 season, most players have likely completed the...
By Xtameem Xtameem 2025-10-31 02:27:34 0 20