I would like to restrict external SSH logins to specific users and allow intranet logins (192.168.0.0/24) to all users. I would appreciate a complete example file for this scenario.
I would like to restrict external SSH logins to specific users and allow intranet logins (192.168.0.0/24) to all users. I would appreciate a complete example file for this scenario.
Although not tested, you should be able to use something akin to.
This would go into your
sshd_config
file.Thank you for your answers. I have also found the following sshd_config syntax at http://ubuntuforums.org/showthread.php?t=523477 :
Use host or public key authentication on the local LAN and then password authentication.
Than configure known hosts or known_keys for every PC in you intranet