OS X Server에서 SSH 서버의 비밀번호 인증을 비활성화하고 싶습니다. 이것은 / etc / sshd_config에서 수행되어야합니다. 그러나 어떤 설정을 변경해야할지 모르겠습니다.
답변
BSD 시스템이라면 이 스택 오버플로 답변에서 설명한 것처럼 sshd_config의 일부 옵션을 해제해야합니다 .
UsePam yes # it will not be used
ChallengeResponseAuthentication no
PasswordAuthentication no
kbdInteractiveAuthentication no
답변
도움이되는 경우 10.10 (Yosemite) 에서이 문제가 발생하여 잘못된 파일을 편집하고있는 것으로 나타났습니다. /etc/sshd_config
는 올바른 말이 아니라 /etc/ssh/sshd_config
내가 man sshd_config
말한 것을 기반으로 시도한 것입니다 .
SSHD_CONFIG(5) BSD File Formats Manual SSHD_CONFIG(5)
NAME
sshd_config -- OpenSSH SSH daemon configuration file
SYNOPSIS
/etc/ssh/sshd_config
DESCRIPTION
sshd(8) reads configuration data from /etc/ssh/sshd_config ...