[ssh-add] Could not open a connection to your authentication agent.

HYEOB KIM·2022년 4월 12일
0

Trouble Shooting

목록 보기
1/7

에러 메세지

ssh-add 명령어를 실행하는 과정에서 위의 에러 메시지를 확인했습니다.

$ ssh-add hyeob-home-keypair.pem
Could not open a connection to your authentication agent.

해결 방법

이는 한 번도 ssh-agent를 사용하지 않았을 때 발생하는 에러이므로 아래의 명령을 입력해 ssh-agent를 시작합니다.

eval $(ssh-agent)

다시 ssh-add를 실행하면 성공적으로 키 파일이 등록됩니다.

$ ssh-add < 파일 이름>
profile
Devops Engineer

0개의 댓글