Ubuntu: Upgrade FTP user to SFTP

0
27K

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.

Căutare
Categorii
Citeste mai mult
Networking
South Korea Sheet Metal in Aerospace and Heavy Engineering
The South Korea Sheet Metal is a critical sector within the country’s highly...
By Deady Cnm 2025-10-09 09:24:49 0 1K
Jocuri
Mobile Legends: Bang Bang — обновление Next [трейлер]
Компания Moonton, создатели популярной мобильной игры Mobile Legends: Bang Bang, анонсировали...
By Xtameem Xtameem 2025-10-29 09:36:22 0 726
Sports
Erik Spoelstra Fined $25, 000 For Criticizing Refs
The Miami Warmth maintained in the direction of gain their Jap Convention semifinal towards the...
By Okafor Okafor 2025-07-22 08:00:01 0 2K
Shopping
Eagles vs. Rams Week 2 odds picks Point spread total player props and bets to consider
The travel east to take on the in Week 2, as the former looks to prove they are a legitimate...
By Merl Treutel 2025-05-15 02:44:12 0 2K
Alte
Guide to Betting on Football Without Losing
Guide to Betting on Football Without Losing Betting on football without losing is a topic of...
By TRAN KHOA 2025-01-07 03:00:21 0 3K
Aldyra https://aldyra.com