You are not logged in.
Is this possible? I want to force auth to use passwords for IPs in my LAN (192.168.0.*) but for all other IPs, I want it to use keys and no passwords.
Offline
Yes it's possible, something that would looks like this:
# by default, allow pubkey auth and deny password auth
PasswordAuthentication no
PubkeyAuthentication yes
Match Address 192.168.0.0/24
# if requets comes from LAN, allow password auth and deny pubkey auth
PasswordAuthentication yes
PubkeyAuthentication noSee man page (sshd_config) for more details.
Offline