소스 검색

sshd config: restrict access to user "git" (redundant setting)

Fabian Peter Hammerle 3 년 전
부모
커밋
3e9d6a0260
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      sshd_config

+ 2 - 0
sshd_config

@@ -17,6 +17,8 @@ HostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-
 
 UsePAM no
 PermitRootLogin no
+AllowUsers git
+PubkeyAuthentication yes
 PasswordAuthentication no
 ChallengeResponseAuthentication no
 StrictModes no