Ubuntu: Upgrade FTP user to SFTP

0
27Кб

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.

Поиск
Категории
Больше
Другое
Golden Goose Shoes Sale have been a statement piece
Hopefully this gives brands the confidence and impetus to actually bring back some of those...
От Margot Poole 2025-05-17 05:11:27 0 2Кб
Игры
Channel 5 Psychological Thriller – Cast & Plot Revealed
Currently in production across North East England, a four-part psychological thriller...
От Xtameem Xtameem 2025-10-31 04:28:44 0 16
Другое
Understanding the Installation and Maintenance Challenges of Cold Climate Heat Pumps
The cold climate air source heat pump market has been witnessing rapid growth as regions with...
От Ram Vasekar 2025-09-09 12:33:14 0 793
Sports
How In the direction of Perspective Minnesota Lynx vs Phoenix Mercury upon May perhaps 31
The Lynx are hunting in direction of soar back again following a difficult decline towards the...
От DeShields DeShields 2024-07-05 01:24:51 0 7Кб
Shopping
little bean that I Loewe plan on bringing to the office including but not limited
As for the striking ensembles that were paraded down the ancient meets contemporary catwalk? much...
От Sierra Cherry 2024-11-20 07:30:04 0 4Кб