Ubuntu: Upgrade FTP user to SFTP

0
26KB

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.

Suche
Kategorien
Mehr lesen
Shopping
last season Golden Goose Sneakers Sale bag trends are being carried
For the group stage looks, meanwhile, LE naturally had to deliver an epic coordinated fashion...
Von Braelyn Arellano 2024-06-02 05:59:28 0 7KB
Spiele
Vikings trivia: Your inside of-5 each day match, Wednesday variation
Hey Minnesota Vikings followers! Were again for a different working day of the Everyday Norseman...
Von Carter Nate 2025-08-02 02:42:37 0 877
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...
Von Rayna Walters 2024-09-13 07:45:02 1 5KB
Shopping
Osk’s Agile Core: Dynamic Vinyl Production Systems
Traditional vinyl flooring production relied on segmented workflows prone to bottlenecks....
Von ooo ooo 2025-08-21 04:02:43 0 619
Shopping
gives a bride the option Zegna Sneakers On Sale to go for something
The Met, its the time to put on a show, no posits, expounding on the evenings dress code. The...
Von Braelyn Arellano 2024-05-30 09:48:13 0 7KB
Aldyra https://aldyra.com