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
Shopping
Miu Miu Shoes Sale 610
Miu Miu Shoes Sale https://www.miumiusshoes.com
Von Jaliyah Mccullough 2025-06-10 04:25:45 0 2KB
Networking
Future Outlook with US Enterprise VSAT Market
  The US Enterprise VSAT Market forecasts provide a clear picture of how satellite...
Von Sssd Ddssa 2025-09-24 09:37:25 0 554
Andere
Global Self Checkout Retail Market Growth, Forecast | 2035
Self Checkout in Retail Market Dynamics reflect how retailers are leveraging automation to...
Von Shraddha Nevase 2025-09-23 10:06:39 0 687
Shopping
What research has been done on the science behind gifting
 Have you ever thought about whether there's a scientific reason behind why we give gifts or...
Von Some Cats 2024-07-07 14:12:02 0 7KB
Andere
Global Education Consulting Market Share, Key Players, and Emerging Trends
The competitive structure of the global education consulting market is a diverse and highly...
Von Shraddha Nevase 2025-09-15 10:48:06 0 859
Aldyra https://aldyra.com