How to open remote files in sublime text 3

后端 未结 4 1040
既然无缘
既然无缘 2020-11-29 15:29

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 htt

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 16:05

    On server

    Install rsub:

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

    On local

    1. Install rsub Sublime3 package:

    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. Open command line and connect to remote server:

    # ssh -R 52698:localhost:52698 server_user@server_address

    1. after connect to server run this command on server:

    # rsub path_to_file/file.txt

    1. File opening auto in Sublime 3

    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.

提交回复
热议问题