Sublime is a powerful editor that embodies its powerful plugins.
To implement sublime remote connection to a Linux server, you need to use plug-in SFTP.
A. Plug-in installation
Installing plug-ins with the package control
Press Ctrl+shift+p to bring up the command panel
Enter install to bring up the Install Package option and return, then type SFTP, and some related plugins will appear in the drop-down list, select Sftp to install the line.
The plug-in installation process can view information about the status bar in the lower-left corner of the sublime.
Two. Basic connection
After the plug-in installation is complete, configuration is required. Select File->sftp/ftp->set up Server in the menu bar. This will open a configuration file:
We need to configure some basic information for remote connections, such as. Remote IP, user name, password, open directory. Save the file after the configuration is complete.
You can see the remote connection information you have configured on the File->sftp/ftp->browse Server in the menu bar, and then select Connect. You can then browse the files on the remote server.
Three. Synchronizing folders
First create a folder under native Windows (preferably in English) and open it with sublime.
At this point, right-click the file icon in the left Sidbar, select Sftp/ftp:sftp > Map to Remote ...
A. JSON configuration file is then opened. We need to configure the information required for the connection in this file. With the above configuration.
Save files, right-click file icon, SFTP > Download folder, you can download files from remote folders to a synchronized folder. And so on, we can do file upload, synchronization and other operations.
Sublime remote connection to a Linux server