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.

Rechercher
Catégories
Lire la suite
Autre
Paper Straw Market Overview: Size, Share, Opportunities & Future Projections
"Executive Summary Paper Straw Market Value, Size, Share and Projections Global paper...
Par Danny King 2025-09-26 09:53:06 0 964
Autre
Case Studies: How Saudi Arabian Organizations Achieved Success Through ISO 27001 Certification
Why Is ISO 27001 Certification in Saudi Arabia Crucial for Business Security and Compliance? ISO...
Par SOC 1 Certification In New York 2025-10-30 09:45:49 0 626
Autre
Revolutionizing Material Science: The Future of the Nanofibres Market
The Nanofibres Market has emerged as a critical driver of next-generation materials science, with...
Par Ram Vasekar 2025-09-25 12:06:33 0 933
Shopping
Popular Loro Piana Sneakers Sale
Popular Loro Piana Sneakers Sale Loropianassale.com
Par Simone Andersen 2025-11-16 05:20:19 0 331
Jeux
Microsoft June Security Update – Windows Vulnerabilities Fixed
Microsoft's June Security Update Tackles Widespread Windows Vulnerabilities In a significant...
Par Xtameem Xtameem 2025-11-20 00:25:46 0 169
Aldyra https://aldyra.com