SSH connection via Remote Explorer -Vscode (all configuration settings)

Emre Tokac
4 min readAug 25, 2022

--

Information

This is a guide for making ssh remote connection with “Remote explorer” extension.Stay tuned step by step

This is a guide for making ssh remote connection with “Remote explorer” extension.Stay tuned step by step

*Requirements

  1. Firstly you have to download this extensions on vscode

The RemoteSSH extension lets you use any remote machine with a SSH server as your development environment. This can greatly simplify development and troubleshooting in a wide variety of situations. You can:

Develop on the same operating system you deploy to or use larger, faster, or more specialized hardware than your local machine.

Quickly swap between different, remote development environments and safely make updates without worrying about impacting your local machine.

Access an existing development environment from multiple machines or locations.

Debug an application running somewhere else such as a customer site or in the cloud.

The Remote SSH extension lets you use any remote machine with a SSH server as your development environment.

This extension complements the Remote SSH extension with syntax colorization, keyword intellisense, and simple snippets when editing SSH configuration files.

If you already have an extension that provides this functionality, you can disable this extension.

*Optional

WSL lets you run a Linux environment including command-line tools and applications directly on Windows, without the overhead of a traditional virtual machine or dualboot setup. WSL especially helps web developers and those working with Bash and Linux-first tools (i.e. Ruby, Python) to use their toolchain on Windows and ensure consistency between development and production environments.

*Optional

The Remote Containers extension lets you use a Docker container as a full-featured development environment. Whether you deploy to containers or not, containers make a great development environment because you can:

Develop with a consistent, easily reproducible toolchain on the same operating system you deploy to.

Quickly swap between different, separate development environments and safely make updates without worrying about impacting your local machine.

Make it easy for new team members / contributors to get up and running in a consistent development environment.

Try out new technologies or clone a copy of a code base without impacting your local setup.

* All settings for connecting

-After installing remote explorer.Open up the Vscode

Step -1: Select remote explorer extension on Vscode

Step -2: Choose ssh targets and click on the plus symbol.

Step -3: Write here “ssh url” like that.

Step -4: Click your default ssh path (first place)

!! By default, your SSh file will be created after these actions.You can check the inside by going this path C:/User/PC name

Step -5: Turn on the configuration setting (Yapılandırmayı Aç)

Step -6: !! Important config settings

Host (Any Tag here) e.g : Rofu
HostName (Your IP) e.g : ec2–11–222–22–22.compute-1.amazonaws.com
IdentityFile (Any key file path here) e.g :~/Users/emre/.ssh/penguin.pem
User (RemotePc Name) e.g :ec2-user

! Optional settings : It is necessary to make these settings in order not to get a connection time out error.

Host *
TCPKeepAlive yes
ServerAliveInterval 120

Step 7: Click here

Step -8:.Finally you connected

9.After clicking “Open folder ” you can access your remote files.

*!!! Points to take into consideration

  1. Your IP may change when you turn your remote computer off. If you do not have a connection, check your IP number.
  2. Make sure you have the necessary permissions on your “pem” file.

3.You can keep your pem file in any folder wherever you want.You must specify the correct path

4.You can change the default config path from the settings section when you click the step 5.

--

--