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.
![글 작성자가 업로드 한 이미지](/_next/image?url=https%3A%2F%2Fwww.notion.so%2Fimage%2Fhttps%253A%252F%252Fs3-us-west-2.amazonaws.com%252Fsecure.notion-static.com%252F61b372d6-7132-477a-b953-3eeed64f0e03%252FUntitled.png%3Ftable%3Dblock%26id%3D4b8c7504-db4a-46fb-a03c-4e69fe9c183a%26cache%3Dv2&w=3840&q=75)
변환된 내용은 id_rsa에 담기는데, 해당 내용을 개인 키에 넣어주면 된다.