You are on page 1of 8

19/09/2022, 10:20 Connect to a remote server from IntelliJ 

IDEA | IntelliJ IDEA

IntelliJ IDEA  2022.2

Remote development / Connect to a remote server from IntelliJ IDEA

Connect to a remote server


from IntelliJ IDEA Ultimate

Last modified: 09 August 2022

Since working remotely became a necessity, IntelliJ IDEA offers the Remote


Development functionality to help you code, run, debug, and deploy your projects
remotely.

Prerequisites
Before you start developing on the remote machine, make sure you have the following:

• Remote machine (a target for an IDE) meets the minimum recommended


requirements that can be found in IDEs articles.

Since JetBrains Client is a thin client lightweight application, the


requirements for disk space and computer resources are lower than for a
host.

[X]
• You have installed a compatible SSH server on the Linux platform.
Cookies and IP addresses allow us to deliver
and improve our web content and to provide you with a
personalized experience.
Our website uses cookies and collects your IP address for these purposes.
Learn more
The server part is self-contained, so no special dependencies should be
JetBrains may use cookies and my IP address to collect individual statistics and to provide me with
installed.
personalized offers It will
and ads alsotorun
subject theon any glibc
Privacy Policy -based Docker
and the Terms of image (that is,may
Use.
JetBrains not on
use
Alpine).
third-party services for this purpose. I can revoke my consent at any time by visiting the Opt-Out
page.

[Yes, I agree] [No, thanks]

https://www.jetbrains.com/help/idea/remote-development-starting-page.html 1/8
19/09/2022, 10:20 Connect to a remote server from IntelliJ IDEA | IntelliJ IDEA

• The Linux platform has any recent Linux AMD64 distribution such as Ubuntu 16.04+,
RHEL/Centos 7+, and so on. There is no arm64 support yet. We recommend using
machines with 2+ cores, 4GB+ of RAM, and 5GB+ of disk space.

• You need to have the sftp subsystem enabled on the remote host. In the current
implementation, we use it for the backend deployment.

Connection via SSH


The connection to a remote sever is done via SSH and can be started right from the
welcome screen of IntelliJ IDEA.

[X]
Cookies and IP addresses allow us to deliver
and improve our web content and to provide you with a
personalized experience.
Our website uses cookies and collects your IP address for these purposes.
Learn more

JetBrains may use cookies and my IP address to collect individual statistics and to provide me with

Connect to a remote server and open the remote


personalized offers and ads subject to the Privacy Policy and the Terms of Use.
JetBrains may use
third-party services for this purpose. I can revoke my consent at any time by visiting the Opt-Out
page.
project
[Yes, I agree] [No, thanks]

https://www.jetbrains.com/help/idea/remote-development-starting-page.html 2/8
19/09/2022, 10:20 Connect to a remote server from IntelliJ IDEA | IntelliJ IDEA

1. Ensure you have the Remote Development Gateway plugin enabled.

2. On the IntelliJ IDEA welcome screen, select Remote Development.

3. In the Run the IDE Remotely section, click SSH Connection.

If you have the IDE already running on the remote server and you have a
connection link, you can use the Connect to Remote Host With a Link section.

4. Configure the remote server connection parameters and click Check


Connection and Continue to make sure the connection to the remote server is
successful.

5. On the next page of the wizard, in the IDE version field, select the source of the
remote IDE that you want to use. [X]
Cookies and IP addresses allow us to deliver
and improve our web content and to provide you with a
Use experience.
Our
personalized one of the following
website ways to get and
uses cookies an IDE installer:
collects your IP address for these purposes.
Learn more
• Automatically fetch from JetBrains installers storage -default variant.
JetBrains may use cookies and my IP address to collect individual statistics and to provide me with
personalized offers and ads subject to the Privacy Policy and the Terms of Use.
JetBrains may use
Your remote server must have a network connection to JetBrains URLs:
third-party services for this purpose. I can revoke my consent at any time by visiting the Opt-Out
page.
https://code-with-me.jetbrains.com

[Yes, I agree] [No, thanks]


https://download.jetbrains.com

https://www.jetbrains.com/help/idea/remote-development-starting-page.html 3/8
19/09/2022, 10:20 Connect to a remote server from IntelliJ IDEA | IntelliJ IDEA

https://download-cf.jetbrains.com

https://cache-redirector.jetbrains.com

• Fetch from your company's internal storage. In this case, you need to click
Other options and select Use download link. It is helpful if remote machines
don't have an Internet connection to JetBrains' websites or your organization
uses some custom builds.

• Upload from your local machine. In this case, click Other options and select
Upload installer file. You need to get the IDE .tar.gz archive from the
JetBrains website by yourself in advance.

Since IntelliJ IDEA versions 2022.1+, you can also select a custom path
on the remote side for the unpacked backend installer. Use this option
if a default directory doesn't have enough space.

[X]
Cookies and IP addresses allow us to deliver
and improve our web content and to provide you with a
personalized experience.
Our website uses cookies and collects your IP address for these purposes.
Learn more

JetBrains may use cookies and my IP address to collect individual statistics and to provide me with
personalized Download and Start IDE
6. Clickoffers and ads subject to the. Privacy Policy and the Terms of Use.
JetBrains may use
third-party services for this purpose. I can revoke my consent at any time by visiting the Opt-Out
page.
IntelliJ IDEA starts JetBrains Gateway, which downloads the IDE backend,
[Yes, I agree] [No, thanks]
launches, and opens JetBrains Client with your remote project.

https://www.jetbrains.com/help/idea/remote-development-starting-page.html 4/8
19/09/2022, 10:20 Connect to a remote server from IntelliJ IDEA | IntelliJ IDEA

For the information on how to start working with a separate JetBrains Gateway
installer, refer to JetBrains Gateway.

For the information on how to add plugins or SDK, refer to the appropriate Getting
Started section.

Connect through Space


You can perform a custom orchestration on your remote server and use, for example, a
Docker file, or any other automation that fits with your practices. This could be creating
a new virtual image every night, taking the empty environment, and checking out the
latest source code, with a fresh clean image ready to use in the morning.

However, if you work in Space ↗, the integration with IntelliJ IDEA lets you automate all
processes in configuring your dev environment ↗ that you can use for software
development.

Space automates for you the following processes:

• Creating a remote virtual machine

• Starting a Docker image with appropriate libraries and tools

• Downloading and warming up the backend IDE so you can easily open your project
and dive into coding right away.

Connect via Space [X]


Cookies and IP addresses allow us to deliver
and improve our web content and to provide you with a
1. Launch
personalized IntelliJ IDEA.
experience.
Our website uses cookies and collects your IP address for these purposes.
Learn more

2. On
JetBrains maythe
usestarting
cookies page,
and my select JetBrains Space
and click
IP address to collect individual Connect to Space
statistics and to provide. me with
personalized offers and ads subject to the Privacy Policy and the Terms of Use.
JetBrains may use

page.
3. Enter your organization URL and click Continue in Browser
third-party services for this purpose. I can revoke my consent at any time by visiting the Opt-Out
.

[Yes, I agree] [No, thanks]

https://www.jetbrains.com/help/idea/remote-development-starting-page.html 5/8
19/09/2022, 10:20 Connect to a remote server from IntelliJ IDEA | IntelliJ IDEA

4. In the browser window that opens, click Accept to grant the required
permissions. If you are not yet logged in to the Space web app, you will also be
prompted to enter your Space username and password. You will be then
redirected back to your IntelliJ IDEA.

5. Click New Environment and configure a new dev environment (skip this step if
your project already has the needed dev environment):

• Select a repository and a branch where you want to create a dev environment.

• In the Devfile list, select a devfile ↗ (if it exists in your Space project).

• In the IDE list, select an IDE to be used in the dev environment.

• In the Instance type list, select a type of the virtual machine based on the
resources you need and computation credits ↗.
[X]

• In the Environment name


Cookies and IP addresses allow us to deliver
and improve our web content and to provide you with a
field, enter a name for the environment to
personalized experience.
Our website uses cookies and collects your IP address for these purposes.
Learn more distinguish it from other environments.

Click Create Environment


JetBrains may use cookies and my IP address to collect individual statistics and to provide me with
to complete the environment creation.
personalized offers and ads subject to the Privacy Policy and the Terms of Use.
JetBrains may use
third-party services for this purpose. I can revoke my consent at any time by visiting the Opt-Out
page.

[Yes, I agree] [No, thanks]

https://www.jetbrains.com/help/idea/remote-development-starting-page.html 6/8
19/09/2022, 10:20 Connect to a remote server from IntelliJ IDEA | IntelliJ IDEA

6. In the list of dev environments, select an environments to which you want to


connect.

[X]
Cookies and IP addresses allow us to deliver
and improve our web content and to provide you with a
personalized experience.
Our website uses cookies and collects your IP address for these purposes.
Learn more

JetBrains may use cookies and my IP address to collect individual statistics and to provide me with
personalized offers and ads subject to the Privacy Policy and the Terms of Use.
JetBrains may use
third-party services for this purpose. I can revoke my consent at any time by visiting the Opt-Out
page.

[Yes, I agree] [No, thanks]

https://www.jetbrains.com/help/idea/remote-development-starting-page.html 7/8
19/09/2022, 10:20 Connect to a remote server from IntelliJ IDEA | IntelliJ IDEA

This will initiate a connection to the remote IDE. Once the connection is
successfully established, IntelliJ IDEA will open JetBrains Client with your Space
project where you can work further.

You can also initiate connections to remote servers using the Space web
version ↗. This, however, will require you to install JetBrains Gateway.

[X]
Cookies and IP addresses allow us to deliver
and improve our web content and to provide you with a
personalized experience.
Our website uses cookies and collects your IP address for these purposes.
Learn more

JetBrains may use cookies and my IP address to collect individual statistics and to provide me with
personalized offers and ads subject to the Privacy Policy and the Terms of Use.
JetBrains may use
third-party services for this purpose. I can revoke my consent at any time by visiting the Opt-Out
page.

[Yes, I agree] [No, thanks]

https://www.jetbrains.com/help/idea/remote-development-starting-page.html 8/8

You might also like