Ssh 특정 IP 대역에서만 password 접속 허용

1 개요[ | ]

  • 내부망에서는 SSH 패스워드 접속 허용
  • 외부망에서는 SSH key 접속만 허용
PasswordAuthentication no
Match Address 192.168.0.0/24 User gdhong
    PasswordAuthentication yes
Match Address 10.0.0..0/24 User gdhong
    PasswordAuthentication yes
Match all

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}