Sublime text connection svn and SFTP

Source: Internet
Author: User
Tags ftp json svn vps sublime text

Why both SVN and SFTP are introduced. The actual development is to modify their own set of code on the server, when the determination of the same time, only use SVN to submit code, so that the rest of the team can update the code. The usual practice is: the server on the code download to the local, and then through a variety of editors to modify the code, then through an FTP software upload local code to the server, and then refresh the browser to see the effect just modified, if there is no problem then submit to SVN, if there is a problem, repeat the above steps. Doing so can actually achieve development requirements, but it wastes a lot of time.

If you want to see the changes in real time without a variety of FTP operations, the above operation is undoubtedly not done. Therefore, you need a way to automatically sync to the server after you modify the code locally, you just need to refresh the browser in time to see the modified effect.

At present, it seems to me that there are two front-end development artifacts, one is webstorm, and the other is sublime text.

Their specific functionality is not covered, with a very good plug-in support, so you can achieve a variety of functions required. has already implemented local and server-related code on Webstorm, so try to do the same on sublime text.

The following is a Windows system-based operation procedure.

(Do not know sublime text how to install plug-in first to learn)

The first step is to install the SVN plugin

Ctrl+shift+p Open the Command panel, enter the install package return, search for SVN, and select the first full install.

Step Two, install the SFTP plugin

Same as the first step, search for SFTP.

step three, set the SFTP option

After installing SFTP, a Sftp-config.json page is opened, as shown in the following figure.


"Host" is the remote server address and "Remote_path" is the code path.

If you are using a username/password form login, then directly fill in, "Ssh_key_file" remain hidden. If the development environment to take the RSA key form of login, then you need to set up "Ssh_key_file", Linux system here is the path of the RSA file, but here in Windows need to PPK file, otherwise cannot connect to the server.

Here is a question, how to convert the RSA file into a PPK file, the Web has a detailed tutorial (the following source: HTTP://RASHOST.COM/BLOG/LINUX-PUTTY-PPK).

Under the Linux VPS generated by the private key file putty is not recognized, putty only know their own PPK format, in order to convert between the two formats, need to Puttygen this program.

Puttygen is Putty's companion program, Putty's installation package and WINSCP's installation package all contain this program, of course you can also in http://www.chiark.greenend.org.uk/~sgtatham/putty/ download.html Download the Puttygen separately.

Conversion steps:

Run Puttygen Click the Import Key in the Conversions menu item to select the Id_rsa file generated under the Linux VPS click on the Save Private key button on the Puttygen interface to convert the private key to the PPK format. After generating the PPK file, set the Sftp-config.json file, then right-click on the SVN checkout to the local project name, as shown in figure, select Browse Remote to see the console connection server information.


The failed hint in the figure is that the "Ssh_key_file" setting error occurs and the test connection is successful after normal setup.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.