ssh 접속 에러
분명히 ssh에 vi /etc/ssh/sshd_config
PasswordAuthentication yes
에서 # 분명히 변경했는데도.
root@blue:~# sshd -T|grep authentic
hostbasedauthentication no
pubkeyauthentication yes
kerberosauthentication no
gssapiauthentication no
passwordauthentication no
kbdinteractiveauthentication no
authenticationmethods any
root@blue:~#
이렇게 나오는 것이다.
그래서
cd /etc/ssh/
grep -Ri authentic
해보니
sshd_config.d/60-cloudimg-settings.conf:PasswordAuthentication no
요놈이 튀어 나왔다.
알고 보니 저 설정을 우선해서 적용하는 것이었다.
그래서 yes로 바꿔 주니
암호로 정상 접속이 되었다.
root@blue:/etc/ssh# grep -Ri PasswordAuthentication
sshd_config:#PasswordAuthentication yes
sshd_config:# PasswordAuthentication. Depending on your PAM configuration,
sshd_config:# PAM authentication, then enable this but set PasswordAuthentication
ssh_config:# PasswordAuthentication yes
sshd_config.d/60-cloudimg-settings.conf:PasswordAuthentication no
root@blue:/etc/ssh#