Обновить 02_SSH_SETUP.md

This commit is contained in:
2026-04-17 23:38:46 +03:00
parent 5ea317f27b
commit d565562883
+19
View File
@@ -91,3 +91,22 @@ PubkeyAuthentication yes
```bash
sudo systemctl restart ssh
```
---
## 5. Включение входа по паролю
```bash
sudo passwd root
```
Открыть конфиг:
```bash
sudo nano /etc/ssh/sshd_config
```
```text
PasswordAuthentication yes
PermitRootLogin yes
```
Перезапустить SSH:
```bash
sudo systemctl restart ssh
```