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.

Pesquisar
Categorias
Leia mais
Shopping
Moussa Sissoko shines as Newcastle beat Chelsea
New signing Mou sa Si soko had the home debut of his dreams on Saturday as he dragged Newcastle...
Por Merl Treutel 2025-05-15 02:21:14 0 2KB
Jogos
FC 26 Chemistry Guide: Boost Team Performance Fast
Introduction to FC 26 Chemistry In FC 26, team chemistry is crucial for maximizing player...
Por Xtameem Xtameem 2025-12-03 00:55:29 0 317
Outro
Revolutionizing Heating and Cooling: In-Depth Heat Pump Market Analysis
The Heat Pump Market Analysis highlights the growing adoption of heat pump technologies for...
Por Rupali Wankhede 2025-11-24 12:42:56 0 589
Shopping
feature a translucent LV Shoes classic Ithaca stripe finished
Still, both dresses underscore the codes of the singer era and sexy. You know what they say If it...
Por Matilda Leonard 2024-06-21 14:16:52 0 9KB
Jogos
Genshin Impact : Guide de gestion de la résine
Gestion de la Résine Dans Genshin Impact, la résine est une ressource essentielle...
Por Xtameem Xtameem 2025-11-27 16:13:32 0 447