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
Shopping
only two ever made at Louis Vuitton Outlet the Vanity Fair s after party
Despite becoming a group just two years ago, is already achieving major career highs including...
By Matilda Leonard 2024-06-20 10:31:08 0 6K
Other
become millionaires and billionaires by monetizing virtual funds https://monitizationplatform.com/
We Monetize Virtual Funds and pay directly to your personal wallet no fees Monetize Virtual...
By Monitization Platform 2024-08-19 21:04:33 1 5K
Shopping
opened with a performance by a Goyard vape artist who blew
And then there always is the key to everything I sound boring when I talk about it but I love...
By Remi Wells 2024-10-23 08:37:36 0 2K
Shopping
for example like it Celine Sale or not it time to welcome back the squishy
Plus, she planned to squeeze in a nap and go on a hunt for a new Sonny Angel phone accessory....
By Priscilla Gamble 2025-01-10 09:08:35 0 741
Shopping
the first person to drop LDBBAGS a comment gets it
With close to three decades in the public eye has more iconic fashion moments than we can count....
By Sierra Cherry 2024-11-13 07:02:30 0 2K