# realssh-mcp [Health: Active]

**Category:** 🖥️ Command Line  
**Repository:** https://github.com/danielecr/realssh-mcp  
**GitHub Stars:** 0  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/realssh-mcp

## Description
MCP server for SSH remote command execution

## Tools
Capabilities this server exposes over MCP:

- **ssh_execute** — Execute a command on a remote server via SSH.
- **ssh_test** — Test SSH connectivity to a remote host (runs `echo ok` and checks the response).

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/danielecr/realssh-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g @danielecr/realssh-mcp
```

2. Install:

```sh
git clone https://github.com/danielecr/realssh-mcp.git
```

3. Install:

```sh
cd realssh-mcp
```

4. Install:

```sh
npm install
```

5. Run:

```sh
npm run build
```

## Documentation

## What realssh-mcp MCP server does

The realssh-mcp MCP server gives an MCP client two SSH-based tools. `ssh_execute` runs a supplied command on a remote host, while `ssh_test` checks whether an SSH connection works by executing a simple `echo ok` command and validating the response.

The server is intended for environments where SSH access is already configured on the machine running the MCP process. It does not maintain a separate host database or implement SSH cryptography in Node.js. Instead, it delegates connection handling to the operating system's `ssh` executable.

## How it works

Each request starts the local `ssh` process and sends its results back through MCP. Authentication, key selection, aliases, proxy routing, and jump-host behavior therefore come from the local SSH installation and configuration. The standard `~/.ssh/config` file can define host aliases, users, identity files, and `ProxyJump` relationships.

The process uses batch mode by default, which prevents an unattended MCP request from waiting indefinitely for an interactive password or confirmation prompt. Host and username values are checked before being passed to SSH to reduce the risk of interpreting them as SSH options. The command itself runs remotely with the permissions of the selected SSH account.

## Setup and configuration

Install the published package globally with `npm install -g @danielecr/realssh-mcp`, or clone the repository, install dependencies, and build it with npm. The `ssh` executable must be installed and discoverable through `PATH`; the README identifies macOS and Linux as systems where it is normally available.

Register the server as a stdio MCP process. A VS Code configuration uses the `realssh-mcp` command as its server command. Before using the tools, place host aliases, key paths, users, and proxy or jump-host rules in `~/.ssh/config`. These settings belong to the OS SSH configuration rather than to MCP server parameters.

## Tools and capabilities

`ssh_execute` accepts a required host and command. Optional fields select the SSH username, TCP port, timeout in milliseconds, agent forwarding, and additional SSH arguments. The default port is 22, the default timeout is 30 seconds, and the username defaults to the current operating-system user. Additional arguments can pass SSH options supported by the local client.

`ssh_test` accepts a host and optional username, port, and extra SSH arguments. It performs a basic reachability and response check without requiring a separate command from the caller.

Execution results include stdout, stderr, and the exit code. A timeout terminates the command and reports an error rather than allowing it to continue without a limit.

## Limitations and notes

The realssh-mcp MCP server requires a functioning local SSH binary and access to the relevant SSH configuration, keys, or agent. Because batch mode is enabled, workflows that depend on interactive authentication or confirmation may fail unless they are configured for non-interactive use.

Remote commands run with the privileges of the SSH user, so server-side permissions determine what an invocation can do. Command output can include confidential information and should be handled accordingly. The `extraArgs` field can alter SSH behavior, so callers should restrict its use where MCP requests are not fully trusted.

_Full upstream README: https://allmcps.com/mcp/realssh-mcp/readme_

