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.

Site içinde arama yapın
Kategoriler
Read More
Other
Compressed Natural Gas (CNG) Market Demand & Growth Outlook in North America (2025–2031)
The global Compressed Natural Gas (CNG) market is experiencing significant growth,...
By Danny King 2025-10-16 14:19:55 0 431
Music
Golden Goose Sneakers Outlet to the F W 24 collection
Over 80 percent of shoppers gave the device five stars for being fast...
By Birde Shah 2024-08-11 08:51:13 0 7K
Shopping
Buffalo Bills starting LB Terrel Bernard cleared to play against Denver Broncos
ORCHARD PARK, N.Y Darrell Armstrong Jersey . (AP) Buffalo Bills starting middle linebacker Terrel...
By Merl Treutel 2025-05-15 02:17:20 0 2K
Networking
Cereal grinding machinery Technological Innovations and Market Potential
Cereal grinding machinery includes a range of equipment designed to process different types of...
By Mayuri Kathade 2025-09-12 11:41:19 0 792
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 4K