Too many authentication failures Authentication failed. – SSH 접속 오류 해결하기

Received disconnect from xxx.xxx.xxx.xxx port xx:2: Too many authentication failures
Authentication failed.

ssh 접속시 위와같이 오류가 뜨는 경우 해결하는 방법이다.

우선 SSH 키를 초기화 하면 된다. 접속하려는 클라이언트쪽에서 작업해야 합니다.

$ ssh-add -D

하지만 이렇게 해도 제대로 안돼는 경우 아래와 같은 오류메시지를 출력한다.

Could not open a connection to your authentication agent.

이렇게 되면 다음 명령을 실행해 주고 나서 다시 SSH 초기화를 호출해야 합니다.

$ exec ssh-agent bash
$ ssh-add -D

정상적으로 처리되면 아래와 같은 메시지를 출력합니다.

All identities removed.

이제 다시 ssh 접속을 해보면 정상적으로 잘 됩니다. ^^


Comments

답글 남기기