User Tools

Site Tools


ubuntu:ssh:disable_ssh_root_login

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ubuntu:ssh:disable_ssh_root_login [2025/05/21 09:28] – created peterubuntu: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 **/etc/ssh/sshd_config** file:
 +
 +<file bash /etc/ssh/sshd_config>
 +PermitRootLogin no
 +</file>
 +
 +----
 +
 +===== Restart sshd =====
 +
 +<code bash>
 +sudo systemctl restart ssh
 +
 +or
 +
 +sudo /etc/init.d/ssh restart
 +</code>
  
ubuntu/ssh/disable_ssh_root_login.txt · Last modified: 2025/05/21 09:39 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki