SSH MCP
A security-first Model Context Protocol server that provides LLM agents with controlled SSH access to remote Linux hosts. It features command classification, policy-based authorization using a role and host-group matrix, human-in-the-loop approval for destructive actions, and comprehensive audit logging to mitigate risks associated with giving AI shell access.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Execute safe commands on remote Linux servers via LLM agents
- Manage SSH access policies with role-based authorization
- Audit SSH sessions with full decision logging
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
ssh-mcp 2.22.0
{
"version": "2.22.0",
"transport": "stdio",
"identifier": "ssh-mcp",
"registryType": "npm",
"environmentVariables": [
{
"name": "SSH_MCP_PASSWORD",
"description": "Password for the configured profile; a per-profile SSH_MCP_<PROFILE>_PASSWORD takes precedence. Credentials are never accepted as CLI arguments."
},
{
"name": "SSH_MCP_KEY",
"format": "filepath",
"description": "Path to the private key file to authenticate with — the path, not the key material. A per-profile SSH_MCP_<PROFILE>_KEY takes precedence."
},
{
"name": "SSH_MCP_PASSPHRASE",
"description": "Passphrase for an encrypted private key."
},
{
"name": "SSH_MCP_SUDO_PASSWORD",
"description": "Password the sudo tool escalates with, when the policy in force allows the privileged class."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"ssh-mcp": {
"command": "npx",
"args": [
"-y",
"ssh-mcp@2.22.0"
],
"env": {
"SSH_MCP_PASSWORD": "<YOUR_SSH_MCP_PASSWORD>",
"SSH_MCP_KEY": "<YOUR_SSH_MCP_KEY>",
"SSH_MCP_PASSPHRASE": "<YOUR_SSH_MCP_PASSPHRASE>",
"SSH_MCP_SUDO_PASSWORD": "<YOUR_SSH_MCP_SUDO_PASSWORD>"
}
}
}
}Cline
{
"mcpServers": {
"ssh-mcp": {
"command": "npx",
"args": [
"-y",
"ssh-mcp@2.22.0"
],
"env": {
"SSH_MCP_PASSWORD": "<YOUR_SSH_MCP_PASSWORD>",
"SSH_MCP_KEY": "<YOUR_SSH_MCP_KEY>",
"SSH_MCP_PASSPHRASE": "<YOUR_SSH_MCP_PASSPHRASE>",
"SSH_MCP_SUDO_PASSWORD": "<YOUR_SSH_MCP_SUDO_PASSWORD>"
}
}
}
}VS Code
{
"servers": {
"ssh-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ssh-mcp@2.22.0"
],
"env": {
"SSH_MCP_PASSWORD": "<YOUR_SSH_MCP_PASSWORD>",
"SSH_MCP_KEY": "<YOUR_SSH_MCP_KEY>",
"SSH_MCP_PASSPHRASE": "<YOUR_SSH_MCP_PASSPHRASE>",
"SSH_MCP_SUDO_PASSWORD": "<YOUR_SSH_MCP_SUDO_PASSWORD>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"ssh-mcp": {
"command": "npx",
"args": [
"-y",
"ssh-mcp@2.22.0"
],
"env": {
"SSH_MCP_PASSWORD": "<YOUR_SSH_MCP_PASSWORD>",
"SSH_MCP_KEY": "<YOUR_SSH_MCP_KEY>",
"SSH_MCP_PASSPHRASE": "<YOUR_SSH_MCP_PASSPHRASE>",
"SSH_MCP_SUDO_PASSWORD": "<YOUR_SSH_MCP_SUDO_PASSWORD>"
}
}
}
}Let your agent find its tools
Find servers like SSH MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.