Phpstorm-----Enables real-time editing of server code

Source: Internet
Author: User
Tags ftp file sftp link ftp client file transfer protocol ftp file transfer

Phpstorm is a powerful, large-size farm favorite editor, is also my most commonly used editor. Here is a lazy feature to describe. The SFTP protocol is used to connect with the remote server, and the function of directly editing the server code is realized. The effect is that ctrl+s not only can save local code, but also can be directly synchronized to the connected remote server. You can access it directly on your browser to see the code effects.

There are two kinds of ways 1. There are no projects locally and you need to pull the entire project from the server 2. There are already projects in the local area and need to be combined with the server.

1 Pull Server Project

1 Open Phpstorm Click on the third entry and select Web is on remote host ... (Project on remote server ...) )

2 fill in the relevant information

A. Project name: Fill in the project name, note that this name does not have the actual folder will call this, this is in the Phpstorm display convenient for you to see.

B. Local directory: This is the download down the project location, with the usual computer installed thunder Ah, quickly broadcast ah that same.

The following is the choice of the default is good.

3 add a new remote address

A. Name: Local project name, local project folder name

B. Type: Link mode if the cloud server needs to tick the SFTP link. If the virtual host needs to use FTP link (with the following SFTP and FTP differences)

C. Host: Remote server public network IP

D. port:ftp->21 sftp->22

E. Root path: This is the location of the remote project in your server (usually under the root directory home)

F. User name: Server login account name (server is generally the root virtual host into the host management system to view the purchase of virtual host by the official setting)

G. Pass OWRD: Server login account password

Just click below to finish.

2 associating a local project with a server

Open your local project to find

Add a remote host address click on the + Sign box to enter a remote address name that is easy to remember

Add a new remote address

A. Type: Link if the cloud server needs to tick the SFTP link. If the virtual host needs to use FTP link (with the following SFTP and FTP differences)

B. Host: Remote server public network IP

C. port:ftp->21 sftp->22

D. Root path: This is the location of the remote project in your server (usually under the root directory home)

E. User name: Server login account name (server is generally the root virtual host into the host management system to view the purchase of virtual host by the official setting)

F. Pass OWRD: Server login account password

Then click on tab Mappings

3 here's how to set up save direct sync to the cloud Locate the Setup window

Select Direct Sync sometimes you need to ctrl+s for a little bit. Try it yourself.

The difference between FTP and SFTP

FTP is a file transfer protocol. On the website, if you want to share files and people, the most convenient way is to upload files to the FTP server, the other people through the FTP client program to download the required files.

FTP file transfer needs to be done through the port. The general required ports are:

1. Control link-tcp Port 21. Controller side. Used to send instructions to the server and wait for the server to respond.

2. The data link---TCP port 20. Data transfer port. Used to create a data transfer channel. It is used primarily to send a file from the client to the server, send a file from the server to the customer, send a file or directory list to the client from the server.

In order to adapt to different network environment, FTP supports two modes of active connection and passive connection. Both of these modes are primarily for data links, regardless of the control link.

Security Implications of FTP:

One, FTP server Software vulnerability.

Second, the plaintext password.

Third, the FTP flag.

Four, the port scan through the FTP server.

V. Data hijacking.

Security Policy for ftp:

First, the use of set hired security system and FTP service software.

Second, the use of ciphertext transmission user name and password.

Third, change the flag of the service software.

Iv. enhance the security of the Protocol.

SFTP is the abbreviation for Secure File Transfer protocol and is a security file transfer protocol. You can provide a secure encryption method for transferring files. Same as FTP almost grammatical function.

SFTP is part of SSH and is a secure way to transfer files to the blogger server. It does not have a separate daemon, and it must use the sshd daemon to complete the corresponding connection operation, so in a sense, sftp is not like a server program, but more like a client program. SFTP is also used to transmit authentication information and transmitted data using encryption, so it is very safe to use SFTP. However, the transfer efficiency is much lower than that of ordinary FTP because of the encryption/decryption technology used in this mode of transmission. Use instead of FTP when the network security requirements are higher.

Phpstorm-----Enables real-time editing of server code

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.