Ubuntu: Upgrade FTP user to SFTP

0
26K

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
Shopping
Figuring out what to do with Haason Reddick among Eagles biggest offseason issues
There was never a real risk that Nick Sirianni was going to be fired after the season, but he...
By Merl Treutel 2025-05-15 02:05:08 0 1K
Shopping
Harsh but fair The FA cracks down on alleged racism
The two recent cases regarding alleged racism, that of Chelsea and England skipper John Terry and...
By Merl Treutel 2025-05-15 02:12:53 0 1K
Sports
It's Opening Day for the Akron RubberDucks and Lake Region Captains
We're nearly to totally operational, all-day, every-day baseball. The Guardians and their...
By DeShields DeShields 2024-07-05 01:26:10 0 7K
Shopping
New York and mini Celine dresses in London to sheer separates
Yes, you saw fringe and themes of Americana in Celine Mini Belt Bags New York and breathtaking,...
By Remi Wells 2024-10-30 17:10:37 0 3K
Health
Whatsapp +97433711266 where to buy #weed #marijuana #kush in #Riyadh KSA
Whatsapp +97433711266 where to buy #weed #marijuana #kush in #Riyadh KSA CBD oil Qatar, CBD oil...
By Mohammed Saad 2025-08-15 05:57:37 0 14
Aldyra https://aldyra.com