TIP-LINUX
Ubuntu SSH 접속시 Permission denied (publickey) 해결
무한열정
2024. 6. 11. 14:39
■ VM에서 Ubuntu 사용중에 SSH 접속시 다음 오류가 발생
- 환경정보
Ubuntu 22.04 LTS
Vagrant VMPermission denied (publickey)
■ 해결방법
- PasswordAuthentication 설정값 변경
$ sudo vi /etc/ssh/sshd_config.d/*.conf #PasswordAuthentication no # no => yes 변경 PasswordAuthentication yes
- SSH 서버 데몬 재시작
$ sudo vi /etc/ssh/sshd_config.d/*.conf sudo systemctl restart sshd