Am a big fan of using VPS as my workspace (pentesting/development/and basic tasks) and have been using it for a long period of time now,.
If you dont know how to setup a VPS for Pentesting or Development sake, feel free to check this step by step guide on Setting Up Ubuntu Linux VPS For Offensive Security and Pentesting
Everything with an advantage will also have a disadvantage, and some of the disadavantages of using a VPS as a workspace are;
- The movement of files from my local system to my VPS, vice versa
- Spinning up nano everytime to write and searching through files for a pattern and all that and more.
Although i do find my way around this issues via Terminal, but having a nice way to access this thing can be helpful and speed up work rate.
That brings us to the VS Code Software and its awesome Extension named Remote -SSH
With this you can access your VPS environment through a nice Interface good for navigation, can be handy when doing Android App Pentest.
Where you decompile Apks and grep through th files or looking through manually.
Creating files and editing files easily, so when you are done with installation, here is how to get your things up and running.
- Enable the Remote - SSH Extension after installation, you might also be prompted to install another Extension name Remote - SSH Editing Configuration Files, install and enable it also.
- If you are on Windows, press F1 button to spin up a command box on VS Code For Mac users, press, Shift + Comand + P
Then enter the "remote-ssh" in the box, it will show you all the Remote SSH options.
Then you pick the "Remote-SSH: Connect to Host..." Option, that should spin up another box, asking you to input your VPS username and host, in this format username@host, e.g firstname.lastname@example.org.
- It's time to input your VPS Password
- Now that we are in, let's play inside our VPS environment
Creating folders inside our Ubuntu VPS
Seeing the folder realtime on our VPS environment via our Terminal
- Creating files inside our Ubuntu VPS via VS Code and seeing it realtime on our VPS environment via our Terminal.
- Writing inside our created file in VPS via VS Code and seeing it real time via terminal
- Drag and dropping files from my local system into my Ubuntu VPS Environment
- Deleting files on our VPS Environment Easily
Before i knew about this, i do use the
scp -P 22 email@example.com to upload and download files between my local system and VPS Environent