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
Virtual funds Monetization platform whatsapp+447490927842 visit www.virtualwalletfunds.com
  From Virtual to Reality: Monetizing Your Online Funds"+447490927842Visit our website...
Por Brothers Expert 2024-08-26 14:50:32 0 23KB
Jogos
Why People Love Raymond in Animal Crossing: A Look at the Popularity
Animal Crossing is a popular life simulation game that allows players to create and customize...
Por Shinnytime Shinnytime 2024-04-23 03:31:11 0 9KB
Shopping
Kevin Sumlin If youre scared Texas AM isnt the place for you
Somebody out there is trying to undercut Kevin Sumlin's recruiting efforts by telling recruits...
Por Merl Treutel 2025-05-15 02:34:55 0 1KB
Shopping
Universidad de Chile join the big guns in the Copa Libertadores semi finals.
Universidad de Chile moved into the Copa Libertadores last 4 by overcoming La Libertad 5-3 on...
Por Merl Treutel 2025-05-15 02:13:51 0 1KB
Party
How much blame goes to Derek Shelton for Pirates inadequate efficiency?
However whatever the machinations of the front workplace might be, Derek Shelton can not allow...
Por Wilkins Wilkins 2024-07-23 03:49:15 0 6KB
Aldyra https://aldyra.com