macosubuntusshsublimetext2port

rsub with sublime and ssh connection refusual


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

Solution

  • 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.