Ram*_*yan 60 ssh remote-server sublimetext3
我使用"mRemoteNG"连接到远程服务器,并希望在我的本地sublime文本编辑器中打开远程服务器文件.在我的研究期间,我发现了这个相关的博客https://wrgms.com/editing-files-remotely-via-ssh-on-sublimetext-3/,并按照说明进行操作,但它对我不起作用.有没有人知道如何在我的Sublime中打开远程文件?
小智 151
在服务器上
安装rsub:
# wget -O /usr/local/bin/rsub \https://raw.github.com/aurora/rmate/master/rmate
# chmod a+x /usr/local/bin/rsub
Run Code Online (Sandbox Code Playgroud)
在当地
在Sublime Text 3上,打开软件包管理器(Linux/Win上的Ctrl-Shift-P,Mac上的Cmd-Shift-P,安装软件包),然后搜索rsub并安装它
# ssh -R 52698:localhost:52698 server_user@server_address
# rsub path_to_file/file.txt
截至今天(2018/09/05),您应该使用:https: //github.com/randy3k/RemoteSubl, 因为您可以在packagecontrol.io中找到它,而"rsub"不存在.
tuo*_*alo 19
在macOS上,一个选项是为macOS安装FUSE并用于sshfs挂载远程目录:
mkdir local_dir
sshfs remote_user@remote_host:remote_dir/ local_dir
Run Code Online (Sandbox Code Playgroud)
一些注意事项适用于安装网络卷,因此YMMV.
| 归档时间: |
|
| 查看次数: |
118367 次 |
| 最近记录: |