SSH: Difference between revisions
→Password from LAN, Key from Internet
(One intermediate revision by the same user not shown) | |||
Line 43:
sudo service sshd restart
== Password from LAN, Key from Internet ==
Source: [https://ubuntuforums.org/showthread.php?t=1303735 ubuntuforums.org]
sudo nano /etc/ssh/sshd_config
# 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
|