備忘録.
外側からは公開鍵認証のみ,内側からはパスワード認証も許可する設定.
/etc/ssh/sshd_configに以下を追加.
PasswordAuthentication no Match Address 192.168.xxx.0/24,2409:xxxx:xxxx:xxxx::/64 PasswordAuthentication yes
備忘録.
外側からは公開鍵認証のみ,内側からはパスワード認証も許可する設定.
/etc/ssh/sshd_configに以下を追加.
PasswordAuthentication no Match Address 192.168.xxx.0/24,2409:xxxx:xxxx:xxxx::/64 PasswordAuthentication yes