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.

Search
Nach Verein filtern
Read More
Spiele
Dual Development Strategy: Books to Screens Success
Dual Development Strategy Hollywood’s appetite for stories that already have readers is no...
Von Xtameem Xtameem 2025-10-31 03:25:30 0 829
Shopping
last season Golden Goose Sneakers Sale bag trends are being carried
For the group stage looks, meanwhile, LE naturally had to deliver an epic coordinated fashion...
Von Braelyn Arellano 2024-06-02 05:59:28 0 8KB
Other
Earthing Equipment Market Forecast: Opportunities and Challenges
The earthing equipment market is transforming rapidly, spurred by technological innovations and...
Von Ram Vasekar 2025-09-16 12:30:56 0 1KB
Other
Sliding Door Roller Factory: Zhejiang Huaneng Micro Bearing Co., Ltd.
Zhejiang Huaneng Micro Bearing Co., Ltd. is a leading manufacturer specializing in the design and...
Von huanengpulley huanengpulley 2025-09-28 08:23:54 0 1KB
Gardening
cannabis delivery Texas online website : https://thcweedexpress.com/
website : https://thcweedexpress.com/​​​​​​​Order top-quality weed online in the USA from THC...
Von Thcweed Express 2025-11-26 16:04:09 0 595