Ubuntu: Upgrade FTP user to SFTP

0
27Кб

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.

Поиск
Категории
Больше
Sports
Lynx Centre Jess Shepard toward Skip 2024 Period, Proceed Enjoying within Italy
The Minnesota Lynx introduced upon Wednesday afternoon that heart Jess Shepard will skip the full...
От Bichette Bichette 2025-07-28 07:15:02 0 2Кб
Игры
Valorant Season 26 – Top 5 Teams to Watch
As Valorant Season 26 approaches, the competitive landscape is buzzing with activity, with teams...
От Xtameem Xtameem 2025-12-09 09:44:53 0 38
Networking
Asia-Pacific Heavy Construction Equipment Market trends and technology impact
As Per Market Research Future, the Asia-Pacific Heavy Construction Equipment Market trends...
От Mayuri Kathade 2025-11-18 08:59:48 0 597
Игры
ZoneAlarm 64-bit Support – New Security Suite Unveiled
ZoneAlarm Expands Portfolio with 64-bit Support and New Security Suite Check Point Software...
От Xtameem Xtameem 2025-10-31 04:45:43 0 765
Игры
FISMA Report 2008: Federal Security Trends & Insights
The Office of Management and Budget submitted its fiscal‑year 2008 FISMA report to Congress, a...
От Xtameem Xtameem 2025-10-31 04:18:37 0 704
Aldyra https://aldyra.com