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.

Rechercher
Catégories
Lire la suite
Jeux
Monopoly Go Account Guide Answers to All the You Need to Know
monopoly go cards, a popular board game for mobile devices will require players to control their...
Par Some Cats 2025-04-07 06:01:45 0 2KB
Shopping
designers if you want Golden Goose to give a piece a more
Colors and patterns range from vibrant to understated, giving the brand a wearability that both...
Par Genesis Nguyen 2025-07-22 14:06:55 0 536
Religion
The Secret to Success: Big Wins in EPL Betting Await!
The Secret to Success: Big Wins in EPL Betting Await! The English Premier League is a major...
Par Nguyen Cuong 2025-01-03 07:12:37 0 2KB
Shopping
Osasuna 1-5 Real Madrid Tactical Analysis
A key game and one, which according to the prevailing wisdom, was a potential banana skin for...
Par Merl Treutel 2025-05-15 02:39:49 0 1KB
Autre
We monetize all virtual funds and make payment directly to your bitcoin wallet visit www.virtualwalletfunds.com
From Virtual to Reality: Monetizing Your Online Funds"+447490927842Visit our website...
Par Brothers Expert 2024-08-26 14:58:24 0 22KB
Aldyra https://aldyra.com