Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Optional: Could also modify the config file


root@dc1-lan1-server:~# more /etc/ssh/sshd_config | grep PermitRootLogin

PermitRootLogin yes  <<<<<<< Add this one


vi /etc/ssh/sshd_config

systemctl restart sshd.service