sshd_config에 PubkeyAuthentication이 없을 때 누군가를 제외하는 방법

sshd_config에 PubkeyAuthentication이 없을 때 누군가를 제외하는 방법

PubkeyAuthentication no에 설정하고 싶지만 /etc/ssh/sshd_config누군가 제외되어야 합니다. 예: John

답변1

다음과 같은 내용을 다음과 같이 추가하세요 sshd_config.

Match User John
    PubkeyAuthentication yes

잊지 마세요sudo systemctl reload sshd

관련 정보