I’m using visual studio code a lot. It has a lot of extensions that will make your life a bit easier. And one my of my top favorites has become remote-ssh.
With remote-ssh you can use VSC on a remote server/VM. It uses the ssh protocol to connect to the remote server, install the remote component, and you can use the remote system as a local system.
What am I using it for ?
Well, I have a homelab to get accustomed to and explore VMware software. I use it to fiddle around with software solutions and get accustomed with solutions like GIT, Docker, Ansible and Kubernetes. And all those solutions are text based… Yes off course there are GUI shells for these solutions, but that will not help you to get sufficient with these solutions.
So you need an IDE, and my choice is VSC with remote-ssh
As a VMware fan boy, I like to use photonOS for my linux VMs.
How to configure photonOS for VSC & remote-ssh
I make the following assumptions:
- it is a test/dev environment (we logging in as root) not a production environment
- tdnf updateinfo and tndf -y update has been run
- you have internet connection with the photonOS VM
To make remote-ssh work with photonOS you need to do these things
- install tar
tdnf -y install tar
Remote-ssh uses tar to extract its remote server software
- edit sshd_config at /etc/ssh/sshd_config and set the following settings
- (bonus / optional) Add your public SSH key to the
When using root to login, the location is
else it is