IT/Linux
[Linux] User 로그인 시, Permission Denied 오류
Terriermon
2021. 4. 23. 11:10
문제
ssh UserID@IP
2021.03.23 - [IT/Linux] - [Linux 명령어] User 추가하기
해당 링크와 같이 user를 추가한 후, 추가한 user id로 접근하려 할 때 문제가 발생했다.
Bastion에서 ssh로 로그인 하려고 할 때,
Permission denied, please try again. 문구와 만나게 되었다.
비밀번호를 틀린 문제는 아니었다.
해결 방안
[root@~] cd /etc/ssh
[root@~] vi sshd_config
# PasswordAuthentication 변경
...
PasswordAuthentication yes
...
# sshd system 시작
[root@~] systemctl restart sshd
PasswordAuthentication이 defualt 값이 no 라고 되어 있는 것을 yes로 변경하면 된다.
접속 완료!
반응형