Ubuntu: Upgrade FTP user to SFTP

0
24K

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.

Site içinde arama yapın
Kategoriler
Read More
Fitness
Anavar (Oxandrolone) Blood Levels Increased by Caffeine
Caffeine (1,3,7-trimethylxanthine) is the world's most widely consumed drug and its ergogenic...
By Ellen Green 2025-02-07 04:33:55 0 720
Oyunlar
Monday Musings: Vols comprise a Really intriguing direction
 in the direction of Omaha  And its a NCAA baseball final decision Monday, yoo, y lets...
By Bregman Alex 2024-10-09 08:52:32 0 3K
Home
Application analysis of rdf pellet machine in garbage sorting scenario
rdf pellet machine is a kind of intelligent sorting equipment based on photoelectric principle,...
By Aldyracom Aldyracom 2024-11-11 07:42:35 0 2K
Shopping
Hermes Sneakers the most castizo barrios meaning classical
It speaks of flowers that grow over the graves of the dead, explained. hasn't hit the since,...
By Braelyn Arellano 2024-06-04 07:09:59 0 7K
Party
Nick Lodolo normally takes the mound as the Reds host the Angels inside
of GoodyearNick Lodolo is prepped and well prepared for a 5+ WAR period. He's completed his...
By Stadion Nieuw 2024-03-09 08:39:16 0 11K