Tunnel功能要綁定github帳號
如果是遠端的裝置有安裝vscode可以直接使用
沒有的可以安裝code cli就好
下載 解壓縮 移動到 ```/usr/local/bin```
tar xvf vscode_cli_alpine_x64_cli.tar
sudo cp ./code /usr/local/bin
啟動tunnel 需要綁定github帳號
code tunnel
*
* Visual Studio Code Server *
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement)
. *
✔ Do you accept the terms in the License Agreement (Y/n)? · yes
To grant access to the server, please log into https://github.com/login/device and use
code 92D7-1E51
? What would you like to call this machine? (gracious-tyrannulet) › aksuherksfasduchslkb✔
What would you like to call this machine? · alskdjfnksjdnf
[2022-12-23 23:40:59] info Creating tunnel with the name: alskdjfnksjdnf
Open this link in your browser https://vscode.dev/tunnel/alskdjfnksjdnf
https://vscode.dev/tunnel/alskdjfnksjdnf
1.用瀏覽器遠端開啟連結 需要登入github
https://code.visualstudio.com/assets/docs/remote/vscode-server/server-connected.png
2.透過本地vscode 連接上遠端裝置 需要登入github
需要此外掛
https://code.visualstudio.com/assets/docs/remote/tunnels/tunneling-remote-explorer.png
https://code.visualstudio.com/assets/docs/remote/vscode-server/remote-indicator-server.png
取消裝置認證
code tunnel unregister
刪除
rm -rf ~/.vscode-cli
rm -rf ~/.vscode-server-insiders
rm -rf ~/.vscode-server
取消認證後 此網址就無效了
https://vscode.dev/tunnel/alskdjfnksjdnf