ssh가 작동하지 않지만 수동으로 연결되는 git clone - wsl ubuntu 22.04

ssh가 작동하지 않지만 수동으로 연결되는 git clone - wsl ubuntu 22.04

gitlab에서 repo를 복제하려고합니다. 내 계정에 이미 SSH 키를 추가했습니다. SSH를 통해 복제할 때 발생하는 일은 duoconnect를 통해 인증을 위해 브라우저가 열리는 것입니다. 내 WSL과 Windows에도 이미 duoconnect를 설치했습니다. wslu 및 xdg-utils 패키지를 설치했습니다. 하지만 인증을 위해 브라우저가 열리지 않습니다. 내 Windows에서는 제대로 작동하지만 Linux 하위 시스템에서는 작동하지 않습니다.

이것은 나의구성:

Host <server>
    HostName <server>
    IdentityFile ~/.ssh/id_ed25519

Host <server>
        ProxyCommand duoconnect -host=%h:%p -relay=<server> -log ~/duoconnect.log

xdg-open내 브라우저를 시작합니다. 터미널에서 수동으로 실행하려고 하면 duoconnect -host=%h:%p -relay=<server> -log ~/duoconnect.log브라우저가 열리고 duo를 사용하여 로그 및 인증됩니다. 와 동일 ssh -v <server>하지만 ssh를 사용하면 git clone브라우저가 열리지 않고 열리지 않습니다. 아무것도 기록하지 마세요

에러 메시지:

ssh: connect to host <server> port 22: Connection timed out
fatal: Could not read from remote repository

Please make sure you have the correct access rights and the repository exists.

관련 정보