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
Alte
A Comprehensive Review of the Rapid Developments in India’s Cloud Computing Landscape
  The India Cloud Computing Market is undergoing a period of intense evaluation as...
By Sssd Ddssa 2025-11-20 04:38:03 0 676
Alte
Driving data-led decision-making across enterprises with VerifyVista’s trusted and intelligent business intelligence platform
These days, businesses are drowning in data, but real clarity? That’s tough to find....
By Tarun Jrcompliance 2025-12-24 06:27:10 0 258
Networking
Innovative Tile Options Transforming Architectural Projects
The Tile Market is expanding steadily as construction activity, interior refurbishment, and...
By Deady Cnm 2025-11-19 06:17:51 0 823
Networking
Compressed Air Treatment Equipment Market Share analysis highlighting leading companies and competitive landscape
As Per Market Research Future, the Compressed Air Treatment Equipment Market Share is becoming...
By Mayuri Kathade 2025-11-25 09:53:04 0 788
Jocuri
Pokémon GO Year-End Events: Holiday & New Year Guide
Year-End Pokémon Events As the year draws to a close, Pokémon GO players are...
By Xtameem Xtameem 2025-12-31 11:55:40 0 116
Aldyra https://aldyra.com