Operations 5 min read

Master Xshell: Step-by-Step Remote Connection and Multi-Session Commands

Learn how to configure Xshell for remote server access, create and manage sessions, and use the Compose feature to execute commands across multiple terminals simultaneously, complete with detailed step-by-step instructions and visual screenshots.

Python Crawling & Data Mining
Python Crawling & Data Mining
Python Crawling & Data Mining
Master Xshell: Step-by-Step Remote Connection and Multi-Session Commands

This tutorial explains how to use Xshell to establish remote connections to servers and provides a handy tip for sending a command to all open sessions at once.

Remote Connection Setup

Click File → New .

In the new session dialog, enter a session name and the host IP address.

Name the session slave2 , provide the terminal IP, and click OK .

The new session appears under “All Sessions”.

Select slave2 , right‑click and choose OPEN .

A security warning appears; choose “Accept and Save” for future connections.

Enter the remote username (commonly root ).

Optionally check “Remember password” and click OK .

Enter the password and optionally remember it.

Confirm the password and click OK .

Xshell connects to the remote terminal slave2 successfully.

Sending a Command to All Sessions

Open the Compose view via View → Compose → ComposeBar (or Compose Pane ).

A blank command box appears at the bottom of Xshell.

Click the small logo on the left of the box, right‑click, and choose To All Sessions to broadcast commands.

Enter ls as a test; the command runs on all open terminals, indicated by a blue exclamation mark on each session.

By following these steps, you can efficiently manage remote servers with Xshell and boost productivity by executing commands across multiple sessions simultaneously.

tutorialterminalRemote Connectioncommand automationmulti‑session
Python Crawling & Data Mining
Written by

Python Crawling & Data Mining

Life's short, I code in Python. This channel shares Python web crawling, data mining, analysis, processing, visualization, automated testing, DevOps, big data, AI, cloud computing, machine learning tools, resources, news, technical articles, tutorial videos and learning materials. Join us!

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.