Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559232 - net-misc/openssh-6.9_p1 not default PermitRootLogin to no
Summary: net-misc/openssh-6.9_p1 not default PermitRootLogin to no
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-31 08:22 UTC by Xiami
Modified: 2015-09-01 20:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xiami 2015-08-31 08:22:33 UTC
In `man sshd_config`, it says `PermitRootLogin no` is the default. Therefore I left the line `#PermitRootLogin no` unchanged in /etc/ssh/sshd_config.

However, I ran `ssh root@gentoo-box` just now and found it succeed with publickey authentication(challengeresponse is also ok).
Then I uncomment `#PermitRootLogin no` in sshd_config and root is no longer permitted to login via ssh.

My sshd_config is exacly as same as the file emerge installed default. The ebuild name is `net-misc/openssh-6.9_p1-r2`.
Comment 1 SpanKY gentoo-dev 2015-09-01 20:05:54 UTC
looks fixed in 7.0

     PermitRootLogin
             Specifies whether root can log in using ssh(1).  The argument must be “yes”, “prohibit-password”, “without-password”, “forced-commands-only”, or “no”.  The default is “prohibit-password”.