Allow/Disallow Root SSH Login: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
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..." |
No edit summary |
||
Line 6: | Line 6: | ||
<pre> | <pre> | ||
PermitRootLogin Yes | PermitRootLogin Yes | ||
</pre> | |||
or | |||
<pre> | |||
PermitRootLogin without-password | |||
</pre> | </pre> | ||
Revision as of 02:09, 6 April 2016
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