Created
March 13, 2018 18:33
-
-
Save sflender/48feb65fb9f7331df389bac3c1f5f861 to your computer and use it in GitHub Desktop.
How to use Sublime Text 3 on remote server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to use Sublime text 3 on remote server: | |
- option 1: use sshfs. This has the disadvantage that you need to log in twice if you want to edit and compile code on remote. | |
- option 2: use rsub. | |
wget -O ~/bin/rsub \https://raw.github.com/aurora/rmate/master/rmate | |
chmod a+x ~/bin/rsub | |
add this to .bashrc: | |
export PATH="~/bin:$PATH" | |
ssh into the machine like this: | |
ssh -R 52698:localhost:52698 server_user@server_address | |
then open files like this: | |
rsub path_to_file/file.txt | |
I found this solution here: https://stackoverflow.com/questions/37458814/how-to-open-remote-files-in-sublime-text-3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment