ubuntu:ssh:disable_ssh_root_login
Differences
This shows you the differences between two versions of the page.
ubuntu:ssh:disable_ssh_root_login [2025/05/21 09:28] – created peter | ubuntu:ssh:disable_ssh_root_login [2025/05/21 09:39] (current) – peter | ||
---|---|---|---|
Line 6: | Line 6: | ||
Then, restart the SSH service to apply the changes. | Then, restart the SSH service to apply the changes. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Edit the **/ | ||
+ | |||
+ | <file bash / | ||
+ | PermitRootLogin no | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Restart sshd ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl restart ssh | ||
+ | |||
+ | or | ||
+ | |||
+ | sudo / | ||
+ | </ | ||
ubuntu/ssh/disable_ssh_root_login.txt · Last modified: 2025/05/21 09:39 by peter