I am trying to use rsub to create tunnel in ssh to sublime text, I run the command rmate .profile but i get the following response. I am using wateroof to open the ports 52968 on 1p4 and ip6, I followed the insturctions here and its just not working
I am running osx on my local machine and ubuntu 12.04 on my remote machine I am ssh into on digitalocean
root@anderskitson:~# rmate .profile /usr/local/bin/rmate: connect: Connection refused /usr/local/bin/rmate: line 186: /dev/tcp/localhost/52698: Connection refused Unable to connect to TextMate on localhost:52698
Start working with your local Sublime From now on you can simply connect to your servers via SSH and open files by executing the command subl file. txt . After that, your local sublime will open and you will feel at home. Of course, you can also save your files.
I was having the same problem.
Let remoteHost = the IP or hostname of the machine you're attempting to ssh to.
I ran ssh -R 52698:localhost:52698 remoteHost
from my local machine, after whice rmate .profile
on remoteHost worked.
That led me to determine that ~/.ssh/config on my local machine was incorrect.
I set ~/.ssh/config to look like this:
Host remoteHost RemoteForward 52698 localhost:52698
It's been working solidly since I made that change.
For anyone getting this same error using PuTTy on Windows, this commenter gives great instructions:
Here's an image which does the explaining visually:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With