Ubuntu: Upgrade FTP user to SFTP

0
24Кб

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.

Поиск
Категории
Больше
Shopping
After Goyard all these years fashion people still love
But, honestly, I think we've gotten lazy when it comes to all black dressing. As we saw more of...
От Sierra Cherry 2024-11-19 06:56:26 0 2Кб
Networking
HDD Rockmaster Housings manufacturer Which is a good choice?
When choosing an HDD Rockmaster Housings manufacturer, you really need to consider a number...
От Aldyracom Aldyracom 2024-09-09 08:51:43 0 4Кб
Другое
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...
От Gulshan Whydonate 2024-11-07 15:07:52 0 4Кб
Другое
Serie A Football Betting Tips: Secure Your Profits Today
Serie A Football Betting Tips: Secure Your Profits Today Serie A betting tips involve analyzing...
От Wintips123 Wintips123 2025-02-10 07:22:21 0 643
Другое
Will My Web Designer Create Content For Me?
Investing in professional website design is crucial for a business owner looking to establish a...
От Moris Pollard 2024-04-23 16:57:18 0 9Кб