Skip to content

Instantly share code, notes, and snippets.

@weiofcn
Last active November 19, 2017 03:42
Show Gist options
  • Save weiofcn/c5ee0f84f644865f3c8df4b28d4ef319 to your computer and use it in GitHub Desktop.
Save weiofcn/c5ee0f84f644865f3c8df4b28d4ef319 to your computer and use it in GitHub Desktop.
## Server side
```
npm -g install jmate
```
## Local & VSCode
1. Install openssh: http://www.mls-software.com/opensshd.html
2. Install Remote VSCode
3. Open terminal, *root@weiofcn.ml* needs to fill the right ssh connection of your server.
```
ssh -R 52698:localhost:52698 root@weiofcn.ml
```
4. *Start server* from the VSCode by using the panel.
5. After the step 3, you will login your server in the terminal, then the *jmate* is for opening a file from server and a file will be opened in VSCode.
For example:
```
root@ken# jmate /etc/vsftpd.conf
````
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment