Summary
Steps to remotely access Intel® Developer Cloud instance with Visual Studio Code.
Description
- Unable to determine if Intel® Developer Cloud has any plans to support Visual Studio Code via Remote Access extension.
- Tried to establish a connection to Visual Studio Code via Remote Access extension for the Intel® Max Series GPU (PVC) on 4th Gen Intel® Xeon® processors - 1100 series (4x) (Batch Processing/Scheduled access) instance.
- Connection became unresponsive after trying a wget command.
Resolution
In order to remotely access Intel® Developer Cloud instance with Visual Studio Code, please follow the steps below.
- Install Remote - Tunnels extension in Visual Studio Code.
- Click on Profile icon at the bottom left of the Visual Studio Code and click Turn On Remote Tunnel Access.
- Select the Turn On For This Session option at the top center of the Visual Studio Code and click Sign In With GitHub.
- Complete the GitHub authentication until Remote Tunnel Access is On.
- Open a new terminal and establish SSH into the Intel® Developer Cloud instance.
- Download code and create a tunnel directly on the instance.
$ curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz
$ tar -xf vscode_cli.tar.gz
$ ./code tunnel - Accept the terms in the License Agreement and complete the Device Activation.
- Go to Remote Explorer panel in Visual Studio Code and click the Refresh button on Remotes(Tunnels/SSH).
- Connect to the instance which can be found under Tunnels section and successfully open a remote session.