Hosting Service Initial Settings (2) – SSH Remote Connection
Summary of the initial settings
We split this step into three sections. This lesson covers the second section.
- AWS Lightsail setup
- Prepare AWS Lightsail and create an Ubuntu (20.04 LTS) instance
- Obtain a static IP address and attach it to the instance
- SSH remote connection between the local computer and the Ubuntu instance (this section)
- Establish an SSH connection between the local computer and the instance
- Enable the remote access using VS Code
- Clone the project directory to the instance using GitHub
- Push the project directory from the local computer to the GitHub repository
- Establish a remote connection between the GitHub repository and the Ubuntu instance (register a developer key)
- Clone the project directory to the Ubuntu instance
Establish an SSH connection between the local computer and the Ubuntu instance
We also cover how to establish an SSH remote connection in the 'Linux OS Introduction' course. Click on the button below to open the related page in a different tab.
Linux Introduction – 'SSH Remote Login (1) – Use Key Pair Generated by Server'
Also, it is better to use an SSH configuration file for quicker remote access setup. Refer to this topic in the 'Linux OS Introduction' course.
Linux Introduction – 'SSH Config File'
Enable remote access using VS Code
By now, you should be able to access your Ubuntu OS from your terminal; however, you cannot see the Linux directory tree and files. Using VS Code extensions, you can access the Ubuntu OS instance through VS Code, and you'll be able to see the directory tree and files in GUI (Graphical User Interface).
We also covered how to establish an SSH remote login with VS Code in the 'Linux OS Introduction' course. Click on the button below to open the related page in a different tab.
Linux Introduction – 'SSH Remote Login with Visual Studio Code'
When you successfully establish the remote login, your terminal in VS Code will be like the one below.