I do my dev work on a Mac OSX machine with a Ubuntu Server Virtual Machine installed, which I manage mostly by SSHing into it from Terminal.
I am trying to find a way to edit files on the server using Sublime Text on the Mac rather than nano or vim from Terminal.
I have followed the instructions contained in this excellent guide, “Using Textmate 2s rmate with Sublime Text 2“.
- I’ve installed rsub in Sublime Text.
- I’ve installed rmate on my Ubuntu server.
- I’ve edited my ~/.ssh/config file.
- I’ve added port 52698 to iptables on the server.
When I SSH into my server and run
rmate .profile
I get the error
connect_to localhost port 52698: failed.
This previous question refers to a similar error, but it appears to be related to having more than one SSH connection open, and I don’t think that is the case for me. How could I test for that, though?
I was wondering if this could be somehow related to the fact that my dev server is a Virtual Machine with a slightly arcane internet set-up – using three different adapters that connect to the host machine’s ethernet and WiFi connections. Would reverse tunnelling over SSH require different tweaking with this set-up?
Or, any other suggestions for resources or references to get this set up?
issue the following command to check if port is opened in VM :
telnet localhost 52698
If not opened then you need to open it.