[Linux] SSH 연결 실패 시 debug 방법
ssh 연결 과정 debug 분석
ssh -v
/ ssh -vv
/ ssh -vvv
명령어로 확인- 공개키파일 경로 확인 및 인증 과정을 확인할 수 있음
ssh -v
/ ssh -vv
/ ssh -vvv
명령어로 확인PasswordAuthentication 설정을 no 로 설정 시 ssh 접속 실패 debug
- sshd_config 설정 [root@server1 ~]# cat /etc/ssh/sshd_config | grep PasswordAuthentication PasswordAuthentication no
- Authentications 방식이 publickey,gssapi-keyex,gssapi-with-mic으로 제한되어 있어 Permission denied 발생
sshd_config 설정에서 PasswordAuthentication을 yes로 변경 시 [root@server1 ~]# cat /etc/ssh/sshd_config | grep PasswordAuthentication PasswordAuthentication no
Authentications 방식이 publickey,gssapi-keyex,gssapi-with-mic,password 으로 password 가 추가 됨
- Authentications 순서는 publickey -> password 순이다.
sshd_config 설정에서 PasswordAuthentication을 yes로 변경 시 [root@server1 ~]# cat /etc/ssh/sshd_config | grep PasswordAuthentication PasswordAuthentication no
Authentications 방식이 publickey,gssapi-keyex,gssapi-with-mic,password 으로 password 가 추가 됨
- Authentications 순서는 publickey -> password 순이다.
'Linux' 카테고리의 다른 글
[Linux] Linux Bonding 관련 명령어(명령어로 Active Link 절체, bonding MAC address 변경, bonding 절체 시 Active MAC 으로 변경) (0) | 2018.12.04 |
---|---|
[Linux] Linux 명령어 정리 systemd-analyze, lsblk 등 (0) | 2018.11.19 |
[Linux]VM에 Disk 추가 시 재부팅 없이 추가된 Disk 를 인식 시키는 방법 (0) | 2018.11.03 |
[Linux] Disk 관련 RAID 및 JBOD 정리 (0) | 2018.10.18 |
[Linux] createrepo 을 활용한 yum repository 서버 구축 (0) | 2018.10.16 |