Allow/Disallow Root SSH Login

From KlavoWiki
Revision as of 10:08, 22 January 2016 by David (Sọ̀rọ̀ | contribs) (Created page with "<pre> vi /etc/ssh/sshd_config </pre> To allow root login from SSH add the line <pre> PermitRootLogin Yes </pre> To disallow root login remove the above line or change it to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
vi /etc/ssh/sshd_config

To allow root login from SSH add the line

PermitRootLogin Yes

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

PermitRootLogin No

Then restart the SSH daemon

systemctl restart ssh