# ssh MCP server

> Provides controlled SSH command execution and SFTP file operations on configured hosts for MCP clients.

- Repository: https://github.com/ralscha/ssh-mcp
- Page: https://hostedmcp.org/servers/ralscha/ssh-mcp
- Transport: —
- Stars: 0
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `SSH_MCP_DEV_KEY_PASSPHRASE` | no | no |  |

## Tools (17)

- `list-connections`
- `read-command`
- `run-command`
- `list-command-templates`
- `run-command-template`
- `diagnose-connection`
- `start-command`
- `sftp-upload`
- `sftp-download`
- `sftp-read`
- `sftp-checksum`
- `sftp-write`
- `sftp-apply-patch`
- `sftp-mkdir`
- `sftp-rename`
- `sftp-remove`
- `risky`

## FAQ

### How can I authenticate with the server?

The server supports password, private-key, SSH-agent, or native Windows Pageant authentication.

### Can I use my existing OpenSSH configuration?

Yes, you can set sshConfigHost on a profile to import HostName, User, Port, IdentityFile, and ProxyJump values from your ~/.ssh/config.

### Is the command execution safe?

The server uses policy-gated commands, command timeouts, and can require human approval for risky operations through MCP elicitation.

### Does it support background jobs?

Yes, it supports persistent background jobs with progress notifications and the MCP Tasks extension.
