Ubuntu: Upgrade FTP user to SFTP

0
26KB

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
Outro
Global Education Consulting Market Share, Key Players, and Emerging Trends
The competitive structure of the global education consulting market is a diverse and highly...
Por Shraddha Nevase 2025-09-15 10:48:06 0 598
Shopping
larger fashion cities Golden Goose Sale thanks to their global approach
Something with traditional front pockets and curved, yoke placement, like these options from and,...
Por Mariah Rubio 2024-08-24 13:24:39 0 5KB
Outro
TOC Analyzers Market Growth Drivers and Restraints
The global TOC Analyzers market leads the nation's so-called 'renaissance', such that...
Por Priya Singh 2025-09-23 16:52:55 0 289
Outro
Manual Resuscitators Market Overview: Size, Share, Opportunities & Future Projections
"Global Demand Outlook for Executive Summary Manual Resuscitators Market Size and...
Por Danny King 2025-10-10 11:03:55 0 3
Sports
Indiana Pacers test toward get back championship variety as soon as minute 50 % struggles
Are they the workers that blitzed for the duration of the very first 4 weeks of the year with a...
Por Bichette Bichette 2025-07-28 07:16:25 0 1KB
Aldyra https://aldyra.com