Ubuntu: Upgrade FTP user to SFTP

0
24K

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.

Search
Categories
Read More
Shopping
steps fashion week could Dior take to increase its international reach
And with four collections a year of three deliveries each we made a lot of them. when I first...
By Priscilla Gamble 2024-12-19 06:34:23 0 514
Other
How to Bet on Football Without Losing – 3 Superior Strategies
  1. Analyzing the Odds: To analyze football odds accurately and effectively, players need...
By TRAN KHOA 2024-11-19 04:30:29 0 1K
Shopping
Overproduction Dior Outlet rides on the back of the most vulnerable
When you think of swimwear fashion, the essentials for a day at the pool or the beach like...
By Rayna Walters 2024-09-13 07:45:02 1 3K
Dance
Ole Pass up basketball hits the street towards Athens for a cant drop contest
Chris Beard will deliver his workforce in the direction of Athens Tuesday evening toward acquire...
By Bregman Alex 2024-10-09 08:28:25 0 2K
Shopping
is now completely out Christian Louboutin Shoes you can still barter
The remixing extends to the show itself, which avoids a strict chronology in favor of themes that...
By Matilda Leonard 2024-06-17 03:51:59 0 7K