Securing SSH - lizzy9596/my-tech-journal GitHub Wiki

How to disable ssh?

  1. First I typed in the command: vi /etc/ssh/sshd_config

  2. After I scrolled down to the line PermitRootLogin and changed yes to no!

image

  1. After I saved and exited vim.
  2. then did command sudo systemctl restart sshd