Deploy JumpServer in One Command, Record All Sessions and Block Dangerous rm‑rf Commands

The article introduces JumpServer, an open‑source bastion host written in Python/Django, explains its features such as unified access to servers, databases and K8s, session recording, command auditing and rm‑rf blocking, and provides a step‑by‑step one‑command installation guide with usage tips.

Java Companion
Java Companion
Java Companion
Deploy JumpServer in One Command, Record All Sessions and Block Dangerous rm‑rf Commands

What is JumpServer

JumpServer is an open‑source bastion host project launched in 2014. Its GitHub repository has over 30,000 stars and the community edition has been deployed more than 500,000 times. The codebase is primarily written in Python and Django and is released under the GPLv3 license.

Core Use Cases

JumpServer provides a single entry point for accessing servers, databases, and Kubernetes clusters. It records every command typed, every file transferred, and can replay sessions. Permissions are centrally managed, satisfying pre‑authorization, real‑time monitoring, and post‑incident audit requirements.

JumpServer supports the following asset types:

Linux servers and network devices : Access via SSH, including switches, routers, and firewalls; SFTP is integrated.

Windows Remote Desktop : RDP sessions can be rendered in the browser or launched with a native client.

Databases : MySQL, Oracle, SQLServer, PostgreSQL, Redis, MongoDB, ClickHouse; a web‑based DB console is provided and proxy support works with tools like Navicat and DBeaver. All executed SQL statements are logged.

K8s, web sites and applications : Direct pod access, web admin panels (e.g., Jenkins, GitLab) can be proxied through JumpServer, and Windows apps can be published via RemoteApp.

Permission Management

Permissions can be granted to individual users or groups for specific assets, specifying the login account and allowed operations. Temporary permissions can be set with an expiration time, which are automatically revoked.

Multi‑factor authentication (MFA) is supported via dynamic tokens such as Google Authenticator, and integration with LDAP, AD, or OAuth2 is available.

Operation Audit

Session recording and command logging : Every session is recorded and can be replayed at variable speed; commands are indexed for keyword search. File transfers are logged with filename, size, and timestamp.

Dangerous command interception : Administrators can define command‑filter rules such as rm -rf to block execution outright or require approval. Real‑time monitoring allows administrators to terminate suspicious sessions.

Daily Usage

Browser access : No plugin required; Chrome can open SSH, Windows desktop, and database sessions directly, with multiple tabs representing separate sessions.

Local client : For users preferring native terminals, JumpServer Client is available for Windows, macOS, and Linux, allowing connections to be launched in local tools.

Quick Start

Prepare a clean 64‑bit Linux machine (minimum 4 CPU, 8 GB RAM) with network access. Run a single command as root:

curl -sSL https://resource.fit2cloud.com/jumpserver/jumpserver/releases/latest/download/quick_start.sh | bash

or use the GitHub source:

curl -sSL https://github.com/jumpserver/jumpserver/releases/latest/download/quick_start.sh | bash

After installation, open a browser and navigate to http://<em>server‑IP</em>/. Log in with the default credentials admin / ChangeMe and change the password on first login.

Complete the setup by:

Add servers in the asset management section (IP, protocol, port, login account).

Create users and assign authorization rules to assets.

Switch to a regular user view, open a Web Terminal, test a connection, transfer a file, and verify the audit recording.

Final Thoughts

JumpServer offers a comprehensive feature set in its community edition without charging money. It demonstrates that bastion hosts are no longer limited to large enterprises; a small team can deploy it with a single command and benefit from full audit capabilities.

Some advanced capabilities—such as premium RDP proxy features and facial recognition—are reserved for the enterprise edition, but for server, database, and basic audit needs, the community edition is sufficient. Organizations with compliance requirements (e.g., Chinese “等保”) will find the built‑in audit materials directly usable.

Open‑Source Repository

https://github.com/jumpserver/jumpserver
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

deploymentOpen SourceJumpServerbastion hostsession recordingcommand auditing
Java Companion
Written by

Java Companion

A highly professional Java public account

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.