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.

Search
Nach Verein filtern
Read More
Networking
Focused Bets, Bigger Wins: Master Over/Under 2.5 Now!
Focused Bets, Bigger Wins: Master Over/Under 2.5 Now! The Over/Under 2.5 goals bet is a popular...
Von Nguyen Cuong 2025-01-17 01:46:49 0 2KB
Shopping
categories specialized High Quality Hermes Bags programs diverse
Almost every collection featured rehermesbags.com mini chic sets that would bring an extra...
Von Genesis Nguyen 2025-07-15 06:43:29 0 969
Shopping
An early chance for Kane to justify Bundesliga move above Premier League riches
Although he never publicly stated it, Harry Kanes desire to leave Spurs in search of trophies at...
Von Merl Treutel 2025-05-15 02:22:42 0 1KB
Sports
Chicago Sky most up-to-date no cost consultant acquisition may possibly carry Angel Reese
Courtney Vandersloot is headed again toward the Chicago Sky, the Chicago Sunlight-TimesAnnie...
Von Okafor Okafor 2025-07-22 08:01:02 0 977
Shopping
Odell Beckham Jr. boat picture revisited How Giants have fared since the infamous photo surfaced
Ship happens.Odell Beckham Jr.'s Giants days are well behind him, but a single image has followed...
Von Merl Treutel 2025-05-15 02:30:00 0 1KB