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.

Search
Categories
Read More
Causes
The Latest Styles Miu Miu Sale
The Latest Styles Miu Miu Sale https://www.miumiusshoes.com
By Kailani Robles 2025-06-18 06:56:26 0 2K
Sports
台灣消費者對SP2S電子煙的評價如何?
隨著電子煙在台灣的普及,消費者對於產品的選擇越來越注重實際體驗與口碑評價。在眾多品牌中,SP2S電子煙近年來逐漸受到關注,成為不少使用者討論的熱門話題。究竟台灣消費者對這款產品的真實看法為何?是...
By Kai Song 2025-10-08 02:44:01 0 423
Shopping
No Deposit? No Worries! Get Free Bets & Start Winning
No Deposit? No Worries! Get Free Bets & Start Winning For those looking to start betting...
By Nguyen Cuong 2025-02-14 06:38:22 0 2K
Shopping
Understanding 200 Grams of Gold Price: A Smart Investor’s Guide
Gold has long been seen as a reliable store of value, especially during times of...
By A1m Mint 2025-05-17 08:26:12 0 2K
Shopping
Bottega Veneta that will make am think of you every
This morning March, was spotted enjoying some time off in Sydney, Australia with friends and she...
By Finley York 2025-08-01 09:07:28 0 1K
Aldyra https://aldyra.com