For today’s blog, I will guide you on how you can access any folder on a remote machine using SSH. Once connected to a server, files and folders can be accessed from anywhere on the remote filesystem.
1. To begin, you should have a Visual Studio Code. Open, your VS Code then go to the Extensions or just press Ctrl+Shift+X and type “Remote – SSH”. This extension allows you to use any remote machine with a SSH server as your development environment.
2. When you have finished installing the extension, go to the lower left corner of your screen and click the green area there.
3. Choose the Connect to the Host then click the + Add New SSH Host and enter your SSH.
Example: ssh [email protected]
4. You will be asked to select SSH configuration file to update. I recommend you to choose the first one in the list.
5. A notice stating Host Added! will appear at the bottom right of your screen. Click the Connect button and a new window will pop up in your screen.
7. You will be prompted to continue in the new window, and you will then be required to enter your SSH password. You just need to wait for the setup to be finished after entering your password.
8. To open any directory, simply click the Open Folder.
Now that you’re done in setting up the extension you can now manage your folder and files easily in your remote machine using VS Code. There are also other similar extensions like this, some of them are Remote – Containers that helps you access any folder in Docker containers and Remote – WSL that helps you access any folder in Windows Subsystem for Linux.
If you want to know more about Remote – SSH, go to this link:
I hope this was helpful. Thank you very much!