SSH: Difference between revisions
Content added Content deleted
Line 43: | Line 43: | ||
sudo service sshd restart |
sudo service sshd restart |
||
== Password from LAN, Key from Internet == |
|||
Source: [https://ubuntuforums.org/showthread.php?t=1303735 ubuntuforums.org] |
|||
# require a key for everybody |
|||
PasswordAuthentication no |
|||
# any member of the group 'downstairs' can log in without a key |
|||
# while connecting from the subnet |
|||
Match Address 192.168.0.0/16 Group downstairs |
|||
PasswordAuthentication yes |
|||