Skip to content
VS Code

SSH — policy-gated remote access for VS Code

io.github.tufantunc/ssh-mcp

Policy-gated, audited SSH for Linux and Windows hosts: roles, approvals, and an audit log.

client:VS Code transport:stdio runtime:npm

Install SSH — policy-gated remote access in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ssh-mcp-password",
      "description": "SSH_MCP_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ssh-mcp-key",
      "description": "SSH_MCP_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ssh-mcp-passphrase",
      "description": "SSH_MCP_PASSPHRASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ssh-mcp-sudo-password",
      "description": "SSH_MCP_SUDO_PASSWORD",
      "password": true
    }
  ],
  "servers": {
    "ssh-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp"
      ],
      "env": {
        "SSH_MCP_PASSWORD": "${input:ssh-mcp-password}",
        "SSH_MCP_KEY": "${input:ssh-mcp-key}",
        "SSH_MCP_PASSPHRASE": "${input:ssh-mcp-passphrase}",
        "SSH_MCP_SUDO_PASSWORD": "${input:ssh-mcp-sudo-password}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

SSH — policy-gated remote access in other clients