rsub with sublime and ssh connection refusual

后端 未结 8 1809
被撕碎了的回忆
被撕碎了的回忆 2021-01-30 14:25

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 o

相关标签:
8条回答
  • 2021-01-30 14:33

    I had the same problem and fixed with replacing the HOSTNAME with the actual IP-Address when connecting:
    e.g.: ssh pi@raspberrypi.local to ssh pi@192.168.1.1

    0 讨论(0)
  • 2021-01-30 14:39

    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.

    0 讨论(0)
  • 2021-01-30 14:49

    I was trying to set this up for the first time using VS Code and got the generic "Connection refused" error even though my configuration seemed fine. It turned out to be because I hadn't reloaded the IDE after installing the rmate extension (Remote VSCode). Make sure that the rmate server is active on your local machine, whatever IDE you're using.

    0 讨论(0)
  • 2021-01-30 14:49

    rmate stopped working for no apparent reason. Turns out I had tripped the 'man in the middle' check. I saw this warning when doing ssh --

    \@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    

    In my case, this warning was expected so I ignored it. This may not apply for you, so verify host identity. Didn't realize this line at the end of the warning --

    Port forwarding is disabled to avoid man-in-the-middle attacks.
    

    No wonder rmate stopped working. Verifying host identity and then clearing out offending entry from ~/.ssh/known_hosts made the warning go away and rmate started working again.

    0 讨论(0)
  • 2021-01-30 14:50

    For anyone getting this same error using PuTTy on Windows, this commenter gives great instructions:

    1. In PuTTy's config window, nagivate to the Connection > SSH > Tunnels pane
    2. In the "Source Port" field, type 52698
    3. In the "Destination" field, type 127.0.0.1:52698
    4. Select the "Remote" and "Auto" radio buttons
    5. Click the "Add" button
    6. Go to the Session pane and save if you want to preserve these settings.

    Here's an image which does the explaining visually:

    rsub configuration windows putty sublime text ssh

    0 讨论(0)
  • 2021-01-30 14:51

    I had the same problem and gone through most of the blogs, I did everything that was told. At last, I found myself that textmate or submile editors are closed(force quit), this caused the problem.

    0 讨论(0)
提交回复
热议问题