Ubuntu: Upgrade FTP user to SFTP

0
25KB

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.

Pesquisar
Categorias
Leia mais
Shopping
Goyard international buyers were drawn by the dual appeal of
So lightweight and ever so chic! I have the clear but love the cola and verde also I may just...
Por Emerie Houston 2024-10-09 08:02:48 0 4KB
Outro
Will My Web Designer Create Content For Me?
Investing in professional website design is crucial for a business owner looking to establish a...
Por Moris Pollard 2024-04-23 16:57:18 0 9KB
Shopping
Oklahoma recruit decommits after racist video surfaces
Jean Delance, a highly touted offensive lineman from Mesquite, Texas, in the 2016 recruiting cla...
Por Merl Treutel 2025-05-15 01:59:10 0 412
Outro
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...
Por TRAN KHOA 2024-12-12 03:51:27 0 1KB
Shopping
Golden Goose Sale and women clothing from to
For resort was inspired by parties. It is about the after party becoming the main event he after...
Por Margot Poole 2025-05-10 07:21:25 0 555
Aldyra https://aldyra.com