Ubuntu: Upgrade FTP user to SFTP

0
24KB

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
SITUS JUDI SLOT GACOR ONLINE TERBAIK ANTI KALAH DI INDONESIA
Jika berbicara mengenai permainan slot online tentunya banyak hal dapat dibicarakan seperti dari...
Por Vase Line 2024-06-05 19:25:59 0 7KB
Shopping
windfall last Dior Sale summer due to the cult success of its dress
Green and Miller met at a Halloween party thrown by a mutual friend in 2021, and, in true...
Por Priscilla Gamble 2025-01-16 09:59:45 0 845
Networking
What do you come into contact with in your daily life? maintenance for automatic cnc pipe end forming machines?
The domestic industry should catch up with the technological level of foreign countries,...
Por Aldyracom Aldyracom 2024-08-29 07:46:38 0 4KB
Shopping
The Timeless Appeal of 22ct Gold Ladies Bands: A Perfect Symbol of Love
When it comes to selecting the perfect wedding band, a 22ct gold ladies band stands...
Por A1j Jewellers 2024-10-14 09:34:37 0 3KB
Outro
A Detailed Guide to Mastering English Football Odds Analysis Today
A Detailed Guide to Mastering English Football Odds Analysis Today In the world of online...
Por Wintips123 Wintips123 2025-01-20 07:37:37 0 836