Allow/Disallow Root SSH Login

From KlavoWiki
Revision as of 05:46, 15 May 2016 by David (Sọ̀rọ̀ | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Edit Config File

vi /etc/ssh/sshd_config

Allow

To allow root login from SSH add the line

PermitRootLogin Yes

Disallow

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

PermitRootLogin No

or

PermitRootLogin without-password

Restart daemon

Then restart the SSH daemon

systemctl restart ssh