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.
- Introduction to SSH
- Installing Visual Studio Code
- Installing the VS Extension
- Connecting to a Remote Host
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.
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:
- Visit the Visual Studio Code website: https://code.visualstudio.com/
- Download the installer for your operating system.
- Run the installer and follow the installation instructions.
- 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:
- Open Visual Studio Code.
- Click on the "Extensions" icon in the Activity Bar on the side of the window or press
Ctrl+Shift+X
. - Search for "ms-vscode-remote.remote-ssh" in the Extensions Marketplace.
- 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:
- Open Visual Studio Code.
- Click on the "Extensions" icon in the Activity Bar on the side of the window or press
Ctrl+Shift+X
. - Search for "ms-toolsai.jupyter" in the Extensions Marketplace.
- 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:
- Open Visual Studio Code.
- Click on the "Extensions" icon in the Activity Bar on the side of the window or press
Ctrl+Shift+X
. - Search for "ms-python.python" in the Extensions Marketplace.
- Click "Install" to add the extension to Visual Studio Code.
To connect to a remote host using the SSH configuration in Visual Studio Code, follow these steps:
- Open Visual Studio Code.
- Prass the green "Open a Remote Window" button in the lower left corner of the VS
- Select "Remote-SSH: Connect to Host..." from the menu.
- Enter
jetbot@IP-address
The IP-address of your robot is on the piOLED display.
- Enter the password
jetbot
- 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!