I am running a VM on my linux server, and I connect to it usually using SSH. I was editing the SSH configurations for this VM to try out different parameters, and last saved edit was not working.
Now, I lost connection to my VM, and then all my tried to connect to the VM are failing "I get 'Connection Refused'". I know the error is coming because of my changed configuration file (ssh_config and sshd_config), and that my ssh service was stopped. Any idea how can I fix this? Is there a way using VBoxManage to edit the files inside the VM? This way I can at least fix the SSH file and get it working again.
Any help is very much appreciated!