💡Aha!

Guacamole Auth key import failed 문제 해결

문제점

Guacamole의 SSH 연결을 하려고 시도할 때, SSH 키를 통한 인증을 사용하면 인증이 안되는 문제가 발생했다.

19:57:26.264 [http-nio-8080-exec-9] INFO  o.a.g.tunnel.TunnelRequestService - User "" connected to connection "".
guacd[427]: ERROR:      Auth key import failed: (null)
guacd[427]: INFO:       User "@" disconnected (0 users remain)

문제의 원인은 Reddit에서 찾을 수 있었다. Private Key를 OpenSSH 포맷이 아닌, PEM 포맷으로 넣어주어야 한다는 것.

해결

기존에 가지고 있는 SSH Private 키를 RSA (pem) 형식으로 변환해 넣어주었다.

변환은 다음과 같이 간단하게 할 수 있다. 작업 전에 키 파일을 백업하는 것을 잊지 말자.

ssh-keygen -p -f id_rsa -m pem

Enter old passphrase:
Key has comment ''
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.
글 작성자가 업로드 한 이미지

변환된 내용은 id_rsa에 담기는데, 해당 내용을 개인 키에 넣어주면 된다.

참고 자료

2024 Dohyun Jung.
Made with ☕️.