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?
Opening remote files with fopen( ) is implemented via a PHP feature called the URL fopen wrapper. It's enabled by default but is disabled by setting allow_url_fopen to off in your php. ini or web server configuration file. If you can't open remote files with fopen( ), check your server configuration.
Start working with your local Sublime From now on you can simply connect to your servers via SSH and open files by executing the command subl file. txt . After that, your local sublime will open and you will feel at home. Of course, you can also save your files.
Editing files on the server with SublimeOn the File menu, click SFTP/FTP, and then click Setup Server. Sublime Text opens the configuration file for the connection. Confirm that the “type” value is “sftp”. For the “host” value, replace example.com with your own domain name.
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
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
ssh -R 52698:localhost:52698 server_user@server_address
rsub path_to_file/file.txt
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With