Ubuntu: Upgrade FTP user to SFTP

0
25K

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
pair them with a Dior structured suit vest or for a take on modern workwear
are just a sampling of those embracing. to meet the demand we're seeing brands develops...
By Remi Wells 2024-10-21 06:40:26 0 3K
Other
Monetize virtual funds at www.virtualwalletfunds.com whatsap +447490927842
From Virtual to Reality: Monetizing Your Online Funds"+447490927842Visit our website...
By Brothers Expert 2024-08-26 14:55:53 2 22K
Shopping
special sale Golden Goose Sale to celebrate their 10 years
It should be said that this look, like its cousins 鈥?0s and in sleaze, is the jurisdiction of the...
By Matilda Leonard 2024-06-23 05:24:36 0 6K
Dance
Monetize Virtual Funds: We monetize all virtual funds and pay bitcoin directly into your wallet
Join us and monetize your virtual funds today!How to Withdraw funds from WeTransfer2u...
By Dereste33 Monitization 2024-07-11 04:30:56 0 6K
Other
Superset Installation Ubuntu 22.04
pip install virtualenv   On Ubuntu 22.04 pip install flask==2.2.5 pip install...
By Saim Safdar 2024-02-06 17:34:14 0 15K
Aldyra https://aldyra.com