IntelliJ IDEA 13.1 Web Help

A remote server is a server on another computer (remote host).

To configure access to the server in this set-up, you need to specify the following:

  1. Connection settings: server host, port, and user credentials.
  2. The server configuration root folder and the URL address to access it.
  3. Correspondence between the project root folder, the folder on the server to copy the data from the project root folder to, and the URL address to access the copied data on the server. This correspondence is called mapping.

On this page:

Creating a server configuration, specifying its name and type
  1. Open the Deployment dialog box. Do one of the following:
    • Open the project settings (File | Settings ), and then click Deployment.
    • Choose Tools | Deployment | Configuration on the main menu.
  2. In the left-hand pane, that shows a list of all the existing server configurations, click the Add toolbar button add.png. The Add Server dialog box opens.
  3. Specify the server configuration name in the Name text box. From the Type drop-down list, choose the server configuration type depending on the protocol you are going to use to exchange the data with the server.
    • FTP: choose this option to have IntelliJ IDEA access the server via the FTP file transfer protocol.
    • SFTP: choose this option to have IntelliJ IDEA access the server via the SFTP file transfer protocol.
    • FTPS: choose this option to have IntelliJ IDEA access the server via the FTP file transfer protocol over SSL (the FTPS extension).
  4. Click OK. The Add Server dialog box closes and you return to the Connection tab of the Deployment dialog box.

    Tip

    Click the Use as Default toolbar button icon_use_web_server_configuration_as_default.png to have IntelliJ IDEA silently apply the current configuration in the following cases:

Specifying your user credentials defined during registration on the host
  1. Specify the registration mode:
    • To login in a regular mode, specify the login in the User name text box.
    • To enable anonymous access to the server with your email address as password, select the Login as anonymous check box.
  2. Specify the way to authenticate to the server:
    • For FTP server, type your password and select the Save password check box to have IntelliJ IDEA remember it.
    • For SFTP server, choose the way to authenticate to the server. Do one of the following:
      • To use standard authentication, choose Password, specify the password, and select the Save password check box to have IntelliJ IDEA remember it.
      • To use SSH authentication via a key pair, choose Key pair (OpenSSH).

        To apply this authentication method, you need to have your private key on the client machine and your public key on the remote server you connect to. See http://wiki.qnap.com/wiki/How_To_Set_Up_Authorized_Keys for details.

        Warning

        IntelliJ IDEA supports private keys generated using the OpenSSH utility.

        Type the private key file and the passphrase in the corresponding text boxes.

    • For FTPS server, specify your user name and password and choose the security mechanism to apply.
      • Choose Explicit to have the explicit (active) security applied. Immediately after establishing connection, the FTP client on your machine sends a command to the server to establish secure control connection through the default FTP port.
      • Choose Implicit to have the implicit (passive) security applied. In this case, security is provided automatically upon establishing connection to the server which appoints a separate port for secure connections.
Enabling connection to the server and specifying the server configuration root
  1. Specify the host name of the FTP/SFTP/FTPS server to exchange data with and the port to which this server listens. The default values are:
    • 21 for FTP and FTPS
    • 22 for SFTP
  2. In the Root path text box, specify the server configuration root relative to your user home as defined when you registered your account. This folder will be the highest one in the folder structure accessible through the current server configuration. Do one of the following:
    • Accept the default value /, which points at the user home folder on the server.
    • Type the path manually.
    • Click the Browse button browseButton.png and select the desired folder in the Choose Root Path dialog box that opens.
    • Click the Autodetect button and have IntelliJ IDEA detect the user home folder settings on the FTP/SFTP server and set up the root path according to them.

      Note

      The button is only enabled when you have specified your user name and password.

  3. In the Web server root URL text box, type the URL address to access the server configuration root. Both the HTTP and the HTTPS protocols are supported. Click the Open button to make sure that the specified URL address is accessible and points at the correct Web page.
Mapping local folders with folders on the server and the URL addresses to access them

Configure mappings, that is, set correspondence between the project folders, the folders on the server to copy project files to, and the URL addresses to access the copied data on the server. The easiest way is to map the entire project root folder to a folder on the server, whereupon the project folder structure will be repeated on the server, provided that you have selected the Create Empty directories check box in the Options dialog box. For more details, see Customizing Upload/Download.

  1. Switch to the Mappings tab.
  2. In the Local Path text box, specify the full path to the desired folder in the project tree. In the simplest case it is the project root.
  3. In the Deployment Path text box, specify the folder on the server where IntelliJ IDEA will upload the data from the folder specified in the Local Path text box. Type the path to the folder relative to the server configuration root. If the folder with the specified name does not exist yet, IntelliJ IDEA will create it, provided that you have selected the Create Empty directories check box in the Options dialog box. For more details, see Customizing Upload/Download.
  4. In the Web Path text box, type the path to the folder on the server relative to the server configuration root. Actually, type the relative path you typed in the Deployment Path text box.

See Also

Procedures:

Reference:

Web Resources: