ssh-shell-exec

Execute commands in persistent SSH shell sessions on remote hosts.

6|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-shell-exec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ssh-shell-exec
Source: https://github.com/Nightreaver/python-ssh-mcp/tree/main/skills/ssh-shell-exec
Command: npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-shell-exec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Automates running commands on remote hosts over SSH with persistence, maintaining the working directory for subsequent commands.

Core Features & Use Cases

  • Persistent SSH Shell Execution: Executes a command in a shell session on a remote host, preserving the working directory for subsequent commands.
  • Directory Persistence: Ensures the command execution happens in the last known directory before the session was initiated.
  • POSIX Support: Primarily designed for POSIX-compliant systems but includes limited Windows SSH functionality.

Quick Start

Open a shell session to a remote host with ssh_shell_open, then run a command within the context of that session with ssh_shell_exec.

Frequently Asked Questions about ssh-shell-exec

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I execute remote commands over SSH and keep the working directory persistent?

You can execute remote commands with directory persistence by opening a persistent SSH shell session. This maintains the working directory automatically, ensuring subsequent commands run in the exact path left by the previous execution.

What is persistent directory management for remote SSH shell execution?

Persistent directory management in SSH execution preserves the working directory across multiple commands within a single session. This prevents path loss between executions, maintaining continuous working context on the remote host.

Can I run SSH shell execution commands on Windows hosts?

You can run SSH shell execution commands on Windows hosts with limited functionality. The system is primarily designed for POSIX-compliant environments, meaning Windows SSH support is available but restricted compared to standard POSIX systems.

How do I start running commands in a persistent SSH shell session?

To start running commands in a persistent SSH shell session, first open a shell connection to the remote host. Once the session is active, execute your desired command within that specific session context to ensure directory persistence.

Do I need an active SSH connection to manage persistent directories remotely?

Yes, you need an active open SSH session to manage persistent directories remotely. The command execution capability requires an established SSH connection to be active before initiating any persistent directory management tasks.