본문 바로가기
Dev/Ops

[vscode] Setting up SSH Host: Copying VS Code Server to host with scp

by jusep 2024. 2. 19.

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

댓글