Ubuntu 설치 후 git clone 시 에러

jebeom@DESKTOP-IFUL5MB:~$ git clone --recurse-submodules [email protected]:RainbowRobotics/rby1-sdk.git Cloning into 'rby1-sdk'... [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

위와 같은 에러가 나타나면 WSL2에 Ubuntu 22.04를 처음 설치한 경우, SSH 키 설정을 아직 하지 않았기 때문에 [email protected]을 통해 GitHub에 접근할 수 없어서이다. 아래와 같은 방법으로 SSH 키 설정을 진행해주자.