Ubuntu: Upgrade FTP user to SFTP

0
27KB

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
Crafts
Scale Production Effortlessly with Nante's Modular Socket Systems
In dynamic manufacturing environments where rapid change and varied power demands coexist, the...
Von Lars xinnyi 2025-06-26 08:39:10 0 3KB
Shopping
Brock Osweiler gets high marks from Denver Broncos
general manager John Elway for another playoff run in 2015.Where does Elway turn, though, if...
Von Merl Treutel 2025-05-15 02:18:48 0 2KB
Andere
High Density Batteries Market Trends & Outlook 2025
High Density Batteries, High-density batteries deliver greater energy capacity,  supporting...
Von Rupali Wankhede 2025-09-16 12:58:16 0 1KB
Andere
Green Diesel Market Outlook 2030: Leading Companies & Share Insights
Green Diesel Market Size & Insights According to MarkNtel Advisors study The future of...
Von Rozy Desoza 2025-10-15 18:03:03 0 952
Networking
Where To Buy caluanie muelear oxidize online usa
Caluanie Muelear Oxidize is a powerful chemical widely used in the metal industry for crushing...
Von James Douk 2025-11-25 16:57:30 0 676
Aldyra https://aldyra.com