SSH 비밀번호 로그인이 지속되는 이유와 cloud-init 설정을 설명합니다.
SSH 비밀번호 로그인을 비활성화하려고 했지만 cloud-init 설정으로 인해 문제가 발생했습니다. 설정 파일을 변경하고 sshd 서비스를 재시작했음에도 불구하고 비밀번호로 로그인할 수 있는 상황이 발생했습니다. 이 글에서는 OpenSSH 구성 파일이 어떻게 병합되는지, cloud-init이 SSH 설정을 어떻게 덮어쓰는지, 적용된 SSH 구성을 확인하는 방법을 다룹니다.
Explains why SSH password login persists and the cloud-init configuration trap.
The article discusses the frustration of trying to disable SSH password login only to find it still active due to cloud-init settings. It explains how OpenSSH configurations are merged from multiple files and how cloud-init can overwrite SSH settings. Additionally, it covers checking the applied SSH configuration and safely disabling password login.