Ubuntu: Upgrade FTP user to SFTP

0
27KB

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.

Rechercher
Catégories
Lire la suite
Autre
Best Property Agents in Dubai and the Cheapest Places to Buy Property in Dubai
Dubai’s real estate market is one of the most dynamic and fast-growing in the world....
Par Invesca Invesca 2025-11-26 09:51:02 0 589
Jeux
Top Streaming Hits: Trending TV Shows This Week
Top Streaming Hits Streaming audiences this week pushed a mix of tense thrillers, haunting...
Par Xtameem Xtameem 2025-10-29 03:11:16 0 827
Jeux
Dune: Awakening – Player Drop, Expansions & DLC Update
Since its debut, Dune: Awakening has seen a dramatic drop in active players, with many citing...
Par Xtameem Xtameem 2025-10-31 02:40:33 0 812
Religion
The Secret to Success: Big Wins in EPL Betting Await!
The Secret to Success: Big Wins in EPL Betting Await! The English Premier League is a major...
Par Nguyen Cuong 2025-01-03 07:12:37 0 3KB
Networking
Risk Assessment and Emergency Response for Mining Explosives
The Mining explosives are specialized energetic materials and systems engineered to...
Par Deady Cnm 2025-10-10 06:58:08 0 1KB