I Locked Myself Out of My Own Server by Changing One Line

Короткий огляд матеріалу з Dev.to DevOps: I Locked Myself Out of My Own Server by Changing One Line.

It was supposed to be a five-minute job. Every hardening guide says the same thing: move SSH off port 22 and the bots will mostly leave you alone. So one evening I opened /etc/ssh/sshd_config on a fresh Ubuntu 24.04 server, changed one line, and restarted SSH. Port 2222 sudo systemctl restart ssh No errors. I opened a second terminal to try the new port. ssh: connect to host 203.0.113.10 port 2222

Це адаптований дайджест українською, а не повний передрук статті.

Джерело: Dev.to DevOps

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *