OS

overklassniy/ssh-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

34 stars 1 forks 품질 87 트렌드 14MIT

SSH MCP 서버: 명령, 전송 파일을 실행하고, MCP를 통해 원격 서버에 포트를 전달합니다.

개요

MCP (Model Context Protocol) 서버는 AI 조수가 안전하고 범위를 갖는 SSH 액세스를 하나의 원격 서버에 제공합니다. ssh-mcp는 stdio를 통해 실행되며 MCP 호환 클라이언트와 함께 작동합니다. Claude Desktop, Claude Code, Cursor, Devin, VS Code 및 Cline. 명령 실행, SFTP 파일 전송, 디렉토리 동기화, 포트 포워딩, 원격 시스템 상태 수집을위한 8 가지 도구를 노출합니다. 원격 서버에서 작동해야 하는 AI 조수는 일반적으로 원시 쉘 (안전하지 않은, unscoped)를 얻거나 SSH 액세스가 전혀 없습니다. ssh-mcp는 사이에서 앉습니다: 그것은 공구의 작은, 감사한 세트를, 각 문질러 선택적인 명령 whitelist/blacklist 및 경로 제한에 의해, 그래서 통신수 통제는 대리인이 할 수 있는 무슨을 정확하게 통제합니다. - - Whitelist 및 blacklist regex 패턴 게이트 실행하기 전에 모든 명령. 화이트리스트가 없다면, 모든 명령은 허용되며 경고는 시작시에 기록됩니다.

개요(AI 번역)

MCP (Model Context Protocol) 서버는 AI Assistants를 안전하게 제공합니다. 한 개 이상의 원격 서버에 SSH 액세스 범위.

ssh-mcp] stdio를 실행하고 MCP 호환 클라이언트와 함께 작동합니다. Claude 데스크탑, 클로드 코드, 커서, Devin, VS 코드 및 Cline. · 명령 실행을위한 8 가지 도구를 노출, SFTP 파일 전송, 디렉토리 동기화, 포트 포워딩 및 원격 시스템 상태 수집.

왜 다릅니다

원격 서버에서 작동해야하는 AI Assistants는 일반적으로 원시 쉘 (unsafe, unscoped)를 얻거나 SSH 액세스가 전혀 없습니다. ssh-mcp 사이에 앉아: 그것은 에이전트를 작은, 감사 세트의 도구, 선택 명령에 의해 각 게이트 화이트리스트 / 블랙리스트 및 경로 제한, 그래서 연산자 제어 정확히 어떤 에이전트 할 수 있습니다.

-Command 정책 – whitelist 및 blacklist regex 패턴 게이트 실행하기 전에 각 명령. whitelist 없이, 모든 명령은 수료 및 경고는 시작에 기록됩니다.

  • **종료 ** - allowed_local_paths 및 allowed_remote_paths confine SFTP는 특정 감독과 경로를 전송합니다. 거래.
  • ** env vars를 통해 Secrets ** - 암호, passphrase 및 2FA 코드는

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

ssh-mcp

An MCP (Model Context Protocol) server that gives AI assistants secure, scoped SSH access to one or more remote servers.

ssh-mcp runs over stdio and works with any MCP-compatible client: Claude Desktop, Claude Code, Cursor, Devin, VS Code, and Cline. It exposes eight tools for command execution, SFTP file transfer, directory sync, port forwarding, and remote system status collection.

Why it is different

AI assistants that need to operate on remote servers typically either get a raw shell (unsafe, unscoped) or have no SSH access at all. ssh-mcp sits in between: it gives the agent a small, auditable set of tools, each gated by an optional command whitelist/blacklist and path restrictions, so the operator controls exactly what the agent can do.

  • Command policy – whitelist and blacklist regex patterns gate every command before execution. Without a whitelist, all commands are allowed and a warning is logged at startup.
  • Path restrictions – allowed_local_paths and allowed_remote_paths confine SFTP transfers to specific directories and reject path traversal.
  • Secrets via env vars – password, passphrase, and 2FA code are passed via environment variables, never on the command line.
  • Hot-reload – when started with --config, the config file is watched for changes and reloaded without restarting the server. Add, remove, or modify servers and the change takes effect within seconds.

Tools at a glance

Tool Description
execute-command Run a command on a remote server
upload Upload a local file via SFTP
download Download a remote file via SFTP
list-remote List a remote directory via SFTP
dir-sync Recursively sync a directory between local and remote
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "ssh-mcp": { "command": "go", "args": [ "run", "github.com/overklassniy/ssh-mcp/cmd/ssh-mcp@latest", "--host", "192.168.1.1", "--port", "22", "--user", "root", "--transport", "exec" ], "env": { "SSH_MCP_PASSWORD": "your-password" } } } }