Ubuntu: Upgrade FTP user to SFTP

0
24K

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
Sports
Cincinnati Reds Do Something Not Done in Last 120 Years of Team Document Books on Friday Evening
The Cincinnati Reds pummeled the St. Louis Cardinals on Friday night at Busch Stadium 19-2....
By Bryanc Ranston 2024-03-07 06:29:55 0 11K
Games
Monopoly Go Account Guide Answers to All the You Need to Know
monopoly go cards, a popular board game for mobile devices will require players to control their...
By Some Cats 2025-04-07 06:01:45 0 176
Shopping
Golden Goose them to var the Italian masterpieces hanging over the basilica
We invited people anybody who is part of the cultural life was invited to the show; from the...
By Emilia Hurley 2024-09-30 10:03:19 0 3K
Other
Apache Airflow Installation on Ubuntu w/ Cloud Panel
Main Resource:...
By Saim Safdar 2024-02-04 18:52:26 1 15K
Networking
soft film calender machine supply of purchasing skills
soft film calender machine supply is a common industrial material, widely used in vibrating...
By Aldyracom Aldyracom 2024-08-29 03:46:27 0 4K