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
Jogos
MMOWOW Shop: Trusted BIGO Live Diamond Recharge Made Easy
In the fast-paced world of live streaming, having the right tools and resources can make all the...
Por Lin Xiao 2025-07-09 06:29:22 0 2KB
Outro
Europe Electric Trucks Market Size, Share & Forecast Analysis to 2032
Europe Electric Trucks Market Size & Insights According to MarkNtel Advisors study...
Por Rozy Desoza 2025-10-27 18:15:26 0 143
Outro
Military Aviation MRO Market: Key Policy & Regulations
The aerospace industry continues to drive technological advancement, linking transport, defense,...
Por Priya Singh 2025-09-12 17:49:08 0 817
Shopping
Golden Goose Sneakers On Sale defunct mineshaft a members only leather
Regardless of your ultimate goals it important to take a holistic app to selecting a fashion...
Por Finley York 2025-08-10 09:04:44 0 1KB
Outro
Monetize virtual funds at www.virtualwalletfunds.com whatsap +447490927842
From Virtual to Reality: Monetizing Your Online Funds"+447490927842Visit our website...
Por Brothers Expert 2024-08-26 14:55:53 2 25KB