$ sudo vim /etc/ssh/sshd_config
.... #PasswordAuthentication yes .... 를 #을 지우고 yes 를 no 로 바꿔야 한다.
즉, PasswordAuthentication no