I need to be able to tell sshd to accept only key based auth from a range of IP while accepting passwords from another range. In SSH brand ssh you can do this with subconfiguration files:
i.e.
In sshd2_config:
AllowedAuthentications publickey
HostSpecificConfig .*\.school\.edu /etc/ssh/goodguys.conf
HostSpecificConfig \m10.0/8 /etc/ssh/goodguys.conf
And in /etc/ssh/goodguys.conf:
AllowedAuthentications publickey, password
Is this possible in OpenSSH?
i.e.
In sshd2_config:
AllowedAuthentications publickey
HostSpecificConfig .*\.school\.edu /etc/ssh/goodguys.conf
HostSpecificConfig \m10.0/8 /etc/ssh/goodguys.conf
And in /etc/ssh/goodguys.conf:
AllowedAuthentications publickey, password
Is this possible in OpenSSH?