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.

Căutare
Categorii
Citeste mai mult
Shopping
Osi Umenyiora announces his retirement
Former star walked away from the game officially Wednesday, but not without one last offer from...
By Merl Treutel 2025-05-15 02:03:10 0 2K
Shopping
2016 NFL Draft Quick-snap grades for AFC teams
Here are my evaluations on how each team utilized their a sets during the 2016 . Grades for Days...
By Merl Treutel 2025-05-15 02:32:58 0 2K
Shopping
Investing in Excellence: The Valcambi Gold 100g Bar
When it comes to investing in gold, few names resonate with as much prestige and...
By A1m Mint 2024-08-23 10:26:07 0 6K
Alte
A Detailed Guide to Mastering English Football Odds Analysis Today
A Detailed Guide to Mastering English Football Odds Analysis Today In the world of online...
By Wintips123 Wintips123 2025-01-20 07:37:37 0 2K
Health
Golden Goose Sneakers Sale Button Down It doesnt get more classic
he Book Tote is an original creation introduced by Maria , Creative Director, and has become a...
By Jane Massey 2024-07-31 04:17:30 0 7K
Aldyra https://aldyra.com