Created
August 16, 2019 23:00
-
-
Save buihuynhhung/8eed78f0c644afd91ac4fe51a0dfe761 to your computer and use it in GitHub Desktop.
Làm thế nào để mở và chỉnh sửa file trên server bằng Sublime Text 3
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment