带有sublime和ssh连接的rsub拒绝 [英] rsub with sublime and ssh connection refusual

查看:248
本文介绍了带有sublime和ssh连接的rsub拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用rsub在ssh中创建隧道以升华文本,我运行命令rmate .profile但我得到以下响应.我正在使用wateroof在1p4和ip6上打开52968端口,我按照指示

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

我在本地计算机上运行osx,在远程计算机上运行ubuntu 12.04,在digitalocean上SSH

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

推荐答案

我遇到了同样的问题.

让remoteHost =您要ssh到的计算机的IP或主机名.

在remoteHost上的rmate .profile正常工作之后,我从本地计算机上运行了ssh -R 52698:localhost:52698 remoteHost.

I ran ssh -R 52698:localhost:52698 remoteHost from my local machine, after whice rmate .profile on remoteHost worked.

这使我确定本地计算机上的〜/.ssh/config不正确.

That led me to determine that ~/.ssh/config on my local machine was incorrect.

我将〜/.ssh/config设置如下:

I set ~/.ssh/config to look like this:

Host remoteHost
  RemoteForward 52698 localhost:52698

自从我进行了更改以来,它一直工作稳固.

It's been working solidly since I made that change.

这篇关于带有sublime和ssh连接的rsub拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆