vscode로 SSH 연결할때 특정 파일들을 다운로드해야 하는데 방화벽 이슈로 파일을 다운로드 받지 못할 때 다음과 같은 문장이 나오면 stuck된다.
이럴때는 직접 파일을 다운로드하고 세팅해줘야 해결할 수 있다.
1. On server, get the commit id
ls ~/.vscode-server/bin
옵션의 'Help' -> 'About'에서 확인할 수 있다.
2. Download tarball replacing $COMMIT_ID with the the commit number from the previous step
For Stable Version
https://update.code.visualstudio.com/commit:$COMMIT_ID/server-linux-x64/stable
For Insider Version
https://update.code.visualstudio.com/commit:$COMMIT_ID/server-linux-x64/insider
COMMIT_ID에 맞는 파일을 다운로드하고 tar 파일을 업로드 한다
3. Extract tarball in this directory
cd ~/.vscode-server/bin/$COMMIT_ID
$ tar -xvzf vscode-server-linux-x64.tar.gz --strip-components 1
서버에 직접 접속하여 압축을 해제해준다
4. Connect again
'Dev > Ops' 카테고리의 다른 글
Container 생성시 gpu 할당 제한 (0) | 2023.12.27 |
---|---|
컨테이너 내부 통신 시 공유 메모리 부족 (1) | 2023.10.12 |
vscode ssh 연결 무한로딩일때 (0) | 2023.06.19 |
bash: jupyter: command not found root (0) | 2023.03.21 |
docker container 생성할때 (0) | 2023.02.24 |
댓글