Allow/Disallow Root SSH Login

From KlavoWiki
Revision as of 02:09, 6 April 2016 by David (Sọ̀rọ̀ | contribs)
Jump to navigationJump to search
vi /etc/ssh/sshd_config

To allow root login from SSH add the line

PermitRootLogin Yes

or

PermitRootLogin without-password

To disallow root login remove the above line or change it to

PermitRootLogin No

Then restart the SSH daemon

systemctl restart ssh