Обновить 02_SSH_SETUP.md
This commit is contained in:
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user