Ubuntu: Upgrade FTP user to SFTP

0
25KB

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.

Suche
Kategorien
Mehr lesen
Andere
8 Meilleurs Idées De Recueillir Des Fonds Pour Club De Sport Incroyables
Idées de recueillir des fonds pour club de sport – Les clubs sportifs sont...
Von Gulshan Whydonate 2024-11-07 15:07:52 0 5KB
Party
The Future of Winning: Best Online Betting Sites for 2024 Players!
The Future of Winning: Best Online Betting Sites for 2024 Players! Are you looking for the...
Von Nguyen Cuong 2024-11-18 02:37:18 0 2KB
Shopping
prestigious reputation Loewe for excese in the arts so it only makes sense
I think for a freelancer I do feel quite proud of. As a whole pratt Institute has a prestigious...
Von Sierra Cherry 2024-11-30 11:11:09 0 2KB
Networking
What do you come into contact with in your daily life? maintenance for automatic cnc pipe end forming machines?
The domestic industry should catch up with the technological level of foreign countries,...
Von Aldyracom Aldyracom 2024-08-29 07:46:38 0 5KB
Shopping
Oklahoma recruit decommits after racist video surfaces
Jean Delance, a highly touted offensive lineman from Mesquite, Texas, in the 2016 recruiting cla...
Von Merl Treutel 2025-05-15 01:59:10 0 723
Aldyra https://aldyra.com