Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'ssh'ing in as root is a bad idea' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
ssh'ing in as root is a bad idea
Authored by: extra88 on Oct 14, '04 02:35:24PM

I agree but the given file name/path is incorrect. To disable logging in as root for the SSH server, edit the file /etc/sshd_config

Find this line:
#PermitRootLogin yes

and change it to this:
PermitRootLogin no

If there is no PermitRootLogin line in the config file (OS X includes it by default but I'm not sure all do), just add the line anywhere in the file.

Once you've finished editing the config file, stop and start the ssh server to load the updated config.



[ Reply to This | # ]
ssh'ing in as root is a bad idea
Authored by: epsilon on Oct 14, '04 04:22:36PM

ironic - just reading this from work, thought it would be a good idea... had to log into root via SSH to change it ;) lol



[ Reply to This | # ]
ssh'ing in as root is a bad idea
Authored by: bentucker on Oct 14, '04 08:14:55PM

Thanks for the config file correction! Sorry about that.



[ Reply to This | # ]