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
- 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
- Open command line and connect to remote server:
ssh -R 52698:localhost:52698 server_user@server_address
- after connect to server run this command on server:
rsub path_to_file/file.txt
- 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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…