Visual Studio SSH Tutorial - arieldo/MorBot GitHub Wiki

This is a short tutorial on installing Visual Studio Code , SSH ,python and Jupyter extensions and getting started with basic SSH and Jupyter usage in the IDE.

Table of Contents

  1. Introduction to SSH
  2. Installing Visual Studio Code
  3. Installing the VS Extension
  4. Connecting to a Remote Host

1. Introduction to SSH

SSH (Secure Shell) is a cryptographic network protocol used to securely access and manage network devices and servers over an unsecured network. It allows you to execute commands, transfer files, and manage resources on remote machines.

2. Installing Visual Studio Code

Visual Studio Code is a lightweight and powerful source code editor developed by Microsoft for Windows, Linux, and macOS. It supports many programming languages and features, such as syntax highlighting, code completion, and debugging.

To install Visual Studio Code, follow these steps:

  1. Visit the Visual Studio Code website: https://code.visualstudio.com/
  2. Download the installer for your operating system.
  3. Run the installer and follow the installation instructions.

3. Installing the VS Extension

  • SSH

The Remote - SSH extension allows you to open any folder on a remote machine and take advantage of VS Code's full feature set. The extension uses the SSH protocol to communicate with remote hosts.

To install the Remote - SSH extension in Visual Studio Code, follow these steps:

  1. Open Visual Studio Code.
  2. Click on the "Extensions" icon in the Activity Bar on the side of the window or press Ctrl+Shift+X.
  3. Search for "ms-vscode-remote.remote-ssh" in the Extensions Marketplace.
  4. Click "Install" to add the extension to Visual Studio Code.
  • Jupyter

Installing Jupyter extensions in VS Code provides a unified environment for working with Jupyter notebooks, offering advanced code editing, version control integration, and customizable workspaces. Additionally, it allows access to a large ecosystem of extensions, debugging capabilities, and multi-language support, ultimately enhancing productivity and efficiency when working with Jupyter notebooks.

To install the Jupyter extension in Visual Studio Code, follow these steps:

  1. Open Visual Studio Code.
  2. Click on the "Extensions" icon in the Activity Bar on the side of the window or press Ctrl+Shift+X.
  3. Search for "ms-toolsai.jupyter" in the Extensions Marketplace.
  4. Click "Install" to add the extension to Visual Studio Code.
  • Python

The Python extension for Visual Studio Code provides rich support for the Python language (for all actively supported versions of the language: 2.7, 3.5, 3.6, 3.7, 3.8, 3.9), including features such as IntelliSense, linting, debugging, code navigation, code formatting, refactoring, variable explorer, test explorer, snippets, and more.

To install the Python extension in Visual Studio Code, follow these steps:

  1. Open Visual Studio Code.
  2. Click on the "Extensions" icon in the Activity Bar on the side of the window or press Ctrl+Shift+X.
  3. Search for "ms-python.python" in the Extensions Marketplace.
  4. Click "Install" to add the extension to Visual Studio Code.

4. Connecting to a Remote Host

To connect to a remote host using the SSH configuration in Visual Studio Code, follow these steps:

  1. Open Visual Studio Code.
  2. Prass the green "Open a Remote Window" button in the lower left corner of the VS
  3. Select "Remote-SSH: Connect to Host..." from the menu.
  4. Enter jetbot@IP-address

The IP-address of your robot is on the piOLED display.

  1. Enter the password jetbot
  2. Follow the instructions

Now you can open files, edit code, and run commands on the remote host directly from Visual Studio Code.

That's it! This short tutorial should help you get started with installing the SSH extension in Visual Studio Code and using basic SSH features. As you gain experience, you can explore more advanced SSH functionalities and remote development features in Visual Studio Code. Good luck!

Now you continu Configure the environment on the robot

Configure the environment

⚠️ **GitHub.com Fallback** ⚠️