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.

Site içinde arama yapın
Kategoriler
Read More
Other
Rise to the Top: Bet on the UK’s Most Trusted Football Sites!
Rise to the Top: Bet on the UK’s Most Trusted Football Sites! For football enthusiasts...
By Nguyen Cuong 2024-12-21 01:49:19 0 3K
Oyunlar
Box Office Slump: Narnia & The Tourist Disappoint
No studio exec I spoke with blamed weekend weather for the box office slump, and if anyone was...
By Xtameem Xtameem 2025-11-03 00:50:00 0 517
Shopping
Rex lands parachute jump stays mum on Kromer
The ' head coach jumped out of an airplane on Friday with the United States Army's Golden...
By Merl Treutel 2025-05-15 03:05:32 0 2K
Oyunlar
Monopoly GO Sticker Hell? MMOWOW to the Rescue
The Sticker Struggle: Every Collector’s Nightmare In the vibrant world of Monopoly Go,...
By Lin Xiao 2025-09-08 07:07:08 0 1K
Networking
Investing in US Graphene: Market Insights and Future Prospects
The U.S. graphene industry is rapidly evolving, with numerous companies driving...
By Deady Cnm 2025-10-16 18:02:41 0 739
Aldyra https://aldyra.com