ssh-exec-run

Execute whitelisted shell commands on remote hosts with audit logging.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need for secure, remote command execution on hosts, ensuring that only authorized commands are run and providing detailed audit logs.

Core Features & Use Cases

  • Command Execution: Run arbitrary shell commands on remote hosts, with fine-grained control over what is allowed.
  • Security Controls: Strictly enforce command whitelisting and access tiers to protect against unauthorized access.
  • Audit Logging: Record detailed audit logs for each command executed, providing a clear trail of actions.

Quick Start

Run the command ssh_exec_run to execute a command on a remote host. For example: ssh_exec_run(host="remote-host", command="ls /").

Frequently Asked Questions about ssh-exec-run

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

FAQPage Schema
How do I execute shell commands on remote hosts securely?

To execute shell commands securely on remote hosts, this Skill enforces command whitelisting and access tiers. It runs authorized commands via ssh_exec_run while blocking unauthorized attempts and providing comprehensive audit logging.

What is command whitelisting for remote command execution?

Command whitelisting for remote command execution is a security mechanism that strictly enforces a predefined list of allowed commands. This Skill uses it to protect against unauthorized access, ensuring only approved commands run on remote hosts.

How do I log remote shell commands for security audits?

You log remote shell commands for security audits using this Skill's built-in audit logging feature. It automatically records detailed audit logs for each executed command, providing a clear trail of actions.

Can I run arbitrary shell commands on remote hosts without compromising security?

You can run arbitrary shell commands safely because this Skill strictly enforces command whitelisting and access tiers. It includes error handling for unauthorized attempts and timeouts to protect remote hosts.

How do I handle unauthorized command execution attempts on remote servers?

To handle unauthorized command execution attempts, this Skill implements strict security controls and error handling. It blocks commands not on the whitelist and records comprehensive audit logs for any unauthorized attempts.

Does ssh-exec-run work with existing secure access policies?

Yes, ssh-exec-run works with existing secure access policies by adhering to security and audit regulations. It enforces command whitelisting and access tiers to ensure only authorized commands are executed on remote hosts.