[Linux] SSH 연결 실패 시 debug 방법

2018. 11. 19. 14:11 - mr.november11

[Linux] SSH 연결 실패 시 debug 방법

ssh 연결 과정 debug 분석

  • 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 순이다.

 


다른 카테고리의 글 목록

Linux 카테고리의 포스트를 톺아봅니다