Ubuntu: Upgrade FTP user to SFTP

0
26Кб

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.

Поиск
Категории
Больше
Другое
Great Soccer Betting Tips from a 10-Year Expert
  What is soccer betting? Experience in Over/Under betting in soccer. All of this will be...
От TRAN KHOA 2024-12-12 03:51:27 0 2Кб
Shopping
Dior Handbags easily be dressed up with a kitten heel or down
To say that women's basketball is in the midst of a cultural boom would be a vast understatement....
От Rayna Walters 2024-09-06 14:39:34 0 6Кб
Другое
Edge Over the Rest: Expert Handicap Strategies for Soccer Betting!
Edge Over the Rest: Expert Handicap Strategies for Soccer Betting! In the world of soccer...
От Nguyen Cuong 2024-12-09 06:54:42 0 2Кб
Shopping
Miu Miu Sale Store been bopping around
Some months later and here we are in chatting with the team behind the label thanks to of vogue...
От Jaliyah Mccullough 2025-06-08 06:59:08 0 1Кб
Sports
Astros Sport 2 Thread and Preview. March 28, 2025, 7:10 CT. Mets @ Astros
The Astros are within 1st location! May possibly they dwell higher than. 500 all...
От Barlow Barlow 2025-08-01 08:57:05 0 832
Aldyra https://aldyra.com