Ubuntu: Upgrade FTP user to SFTP

0
26K

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.

Cerca
Categorie
Leggi tutto
Giochi
Arizona Sunshine Remake: Survive the Zombie Apocalypse in VR
Arizona Sunshine Remake revitalizes the acclaimed VR zombie shooter, transporting players into a...
By Rodeoneerer Rodeoneerer 2024-10-29 08:25:21 0 4K
Health
Arizona Region trips Washington soon after Browns 30-position outing
Arizona Region Solar Devils at Washington HuskiesSeattle; Thursday, 11 p. m. ESTBOTTOM LINE:...
By Bregman Alex 2024-10-09 08:42:40 0 4K
Altre informazioni
Simple Guide to Reading Tonight’s Football Odds for Beginners
Simple Guide to Reading Tonight’s Football Odds for Beginners Football betting is not...
By Wintips123 Wintips123 2024-11-18 02:58:08 0 3K
Shopping
Bottega Veneta from whatever last happened to go to
vice of global brand partnerships a lot of times when you hear from people who have experienced...
By Adalynn Cunningham 2025-07-30 13:55:18 0 934
Shopping
Final Combine medals count Ohio State cruises to first place
INDIANAPOLIS -- Here's the final NFL medal count following Monday's workouts (gold for...
By Merl Treutel 2025-05-15 02:42:15 0 1K