如何在 sublime text 3 中打开远程文件 [英] How to open remote files in sublime text 3

查看:168
本文介绍了如何在 sublime text 3 中打开远程文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用mRemoteNG"连接到远程服务器,并想在我的本地 sublime 文本编辑器中打开远程服务器文件.在我的研究中,我发现了这个相关的博客 https://wrgms.com/editing-files-remotely-via-ssh-on-sublimetext-3/ 并按照说明进行操作,但它对我不起作用.有人知道如何在我的 Sublime 中打开远程文件吗?

I am connecting to remote server using "mRemoteNG" and want to open remote server files in my local sublime text editor. During my research, I found this relevant blog https://wrgms.com/editing-files-remotely-via-ssh-on-sublimetext-3/ and followed the instructions but it is not working for me. Does, anybody know how can I open remote files in my Sublime?

推荐答案

On server

安装 rsub:

wget -O /usr/local/bin/rsub \https://raw.github.com/aurora/rmate/master/rmate
chmod a+x /usr/local/bin/rsub

本地

  1. 安装 rsub Sublime3 包:

在 Sublime Text 3 上,打开包管理器(在 Linux/Win 上是 Ctrl-Shift-P,在 Mac 上是 Cmd-Shift-P,安装包),然后搜索 rsub 并安装它

On Sublime Text 3, open Package Manager (Ctrl-Shift-P on Linux/Win, Cmd-Shift-P on Mac, Install Package), and search for rsub and install it

  1. 打开命令行并连接到远程服务器:

ssh -R 52698:localhost:52698 server_user@server_address

  1. 连接到服务器后,在服务器上运行此命令:

rsub path_to_file/file.txt

  1. 在 Sublime 3 中自动打开文件


截至今天(2018/09/05),您应该使用:https://github.com/randy3k/RemoteSubl因为你可以在 packagecontrol.io 中找到它,而rsub"不存在.


As of today (2018/09/05) you should use : https://github.com/randy3k/RemoteSubl because you can find it in packagecontrol.io while "rsub" is not present.

这篇关于如何在 sublime text 3 中打开远程文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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