Ubuntu: Upgrade FTP user to SFTP

0
25KB

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
Fitness
house latest collections Miu Miu Sale styling sessions and
loved the soft pink color and the A line silhouette, with the surprising gathers in the back, she...
Por Sienna King 2025-06-19 07:56:52 0 648
Início
Miu Miu A beloved and millennial brand for years
Crisscross, macrame, cutout leather straps there no shortage of slip on and go slides on the...
Por Amaris Rush 2025-06-02 14:30:42 0 850
Outro
Paul Blackburn upon warmup course of action, hitless outing
This tale was excerpted towards Martn Gallegos' A's Battle publication. Towards study the entire...
Por Chad Fortners 2024-07-31 03:16:00 0 5KB
Shopping
Andy Reid mustache Chiefs coachs facial hair freezes over during frigid playoff game vs. Dolphins
Former Giants coach Tom Coughlin infamously turned bright red when his team had to play in frigid...
Por Merl Treutel 2025-05-15 02:58:04 0 804
Shopping
UCLAs Brett Hundley worked out for Dallas Cowboys
The , who haven't drafted a quarterback since 2009, could be in the market for one in this draft...
Por Merl Treutel 2025-05-15 02:34:26 0 837