ubuntu ssh 패스워드 사용 안 함 적용 안 됨
/etc/ssh/sshd_config 파일의 PasswordAuthentication no UsePAM 주석 KdbInteractiveAuthentication no PermitRootLogin no 했는데 자꾸 패스워드 물어봄... 검색 하니까 /etc/ssh/sshd_config.d/50-cloud-init.conf 파일에 passwordauthentication yes로 되어 있음 no로 바꾸고 sudo systemctl restart sshd, ssh 재시작 하니까 잘 됨 확인해보진 않았는데 sshd_config 파일에 Include /etc/ssh/sshd_config.d/*.conf 얘 때문에 override돼서 그런 듯?
OS
2023. 10. 31. 23:25
Blog is powered by
Tistory / Designed by
Tistory
Contact: j0n9m1n1@gmail.com
Contact: j0n9m1n1@gmail.com