VSCode Remote

Tutorial to configure Remote Visual Studio with AI Training

Last updated 23rd February 2021.

Objective

This tutorial covers the process of starting a job using a Visual Studio Code Remote via SSH.

Requirements

The deployed image needs to contain the bash binary and a glibc-based Linux (Ubuntu / Debian)

Installation

  1. Install an OpenSSH compatible SSH client if one is not already present.
  2. Install Visual Studio Code.
  3. Install the Remote Development extension pack.

Start a job with the SSH feature

We will launch a job with the CLI, just choose the number of GPUs (<nb-gpus>) to use on your job and use the following command:

ovhai job run --gpu <nb-gpus> -s ~/.ssh/id_ed25519.pub ovhcom/ai-training-tensorflow:2.3.0

Once the job is Running, you can see the sshUrl with job get:

ovhai job get <job-id>

Configure VSCode Remote Development

Verify you can connect to the SSH host by running the following command from a terminal / PowerShell window replacing user\@hostname accordingly:

ssh <job-id>@gra.training.ai.cloud.ovh.net

Welcome to OVHcloud AI Training Jobs SSH
job-0d916855-1cd4-4b66-8803-b4782bc13902:~$

Click on the Remote Explorer Button.

image

Then click on the + button to add a SSH server.

image

Then click on the window icon near your server in the list.

image

Enjoy.

image

Feedback

Please send us your questions, feedback and suggestions to improve the service:


Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.


These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community

In accordance with the 2006/112/CE Directive, modified on 01/01/2015, prices exclude VAT. VAT may vary according to the customer's country of residence.