Connecting to JumpServer via PyCharm

Published 2024年12月16日

Overview

JumpServer supports connections through SSH protocol using tools like Xshell. In some cases, users may want to connect to the jumpserver using other tools, such as VScode or PyCharm. This article explains how to connect to the jumpserver and its assets using PyCharm.

Command Description

PyCharm connection to JumpServer

ssh -p2222 JumpServerUsername@JumpServerHostIP

Parameter description:

Parameter

Description

2222

The port providing SSH connection service for the JumpServer, default is port 2222

JumpServerHostIP

IP address or domain name of the JumpServer service

JumpServerUsername

Username for logging into the JumpServer

Example:

PyCharm connection to JumpServer assets

ssh -p2222 JumpServerUsername@systemUsername@AssetIP@JumpServerHostIP

Parameter description:

Parameter

Description

2222

The port providing SSH connection service for the JumpServer, default is port 2222

JumpServerUsernmae

Username for logging into the JumpServer

JumpServerHostIP

IP address or domain name of the JumpServer service

systemUsername

Account name for connecting to the asset

AssetIP

IP address of the asset to connect to

Note: The password to enter is the password for the JumpServerUsername logging into the JumpServer.

Example:

When there are multiple assets with the same IP address, a table will be displayed for user selection. Enter the asset ID to connect.


Note:  Command line connection to jumpserver assets does not support manual username and password input scenarios.

a. When the authorization rule account is a direct connection account, you can connect to the asset by directly entering the asset ID.

b. When the authorization rule requires manual input, you need to manually enter the asset's username and password when entering the asset ID.
The example below shows the scenario of manual username and password input.