Skip to content
Gemini CLI

SSH — policy-gated remote access for Gemini CLI

io.github.tufantunc/ssh-mcp

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

client:Gemini CLI transport:stdio runtime:npm

Install SSH — policy-gated remote access in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "ssh-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp"
      ],
      "env": {
        "SSH_MCP_PASSWORD": "<SSH_MCP_PASSWORD>",
        "SSH_MCP_KEY": "<SSH_MCP_KEY>",
        "SSH_MCP_PASSPHRASE": "<SSH_MCP_PASSPHRASE>",
        "SSH_MCP_SUDO_PASSWORD": "<SSH_MCP_SUDO_PASSWORD>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

SSH — policy-gated remote access in other clients