ssh-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ssh-mcpConnect to the legacy host and rundf -h"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ssh-mcp
MCP (Model Context Protocol) server that gives any MCP client (Claude Code, Claude Desktop, Cursor, etc.)
a persistent SSH shell on legacy Unix hosts, with helpers for a site-specific ClearCase workflow (yuview, rel, ctco).
Features
Persistent interactive shell per session (csh/sh), reconnected automatically on demand
Sentinel-based
execwith output capture, plussend_inputfor interactive promptsOne-call
connect: SSH login, view script,relproject selection,XN_HOMEverificationSFTP
download_file/upload_filewith MD5 verificationClearCase
checkout(ctco)Credentials stored encrypted (AES-256-GCM) under
~/.ssh-mcp/Legacy SSH algorithm support (DH group1/group14 SHA-1, CBC ciphers, ssh-rsa/ssh-dss)
Related MCP server: MSAW
Requirements
Node.js 18 or later
Network access to the target SSH host
Install
The server speaks MCP over stdio. Register it with your MCP client using the command below.
Generic MCP client configuration (JSON):
{
"mcpServers": {
"ssh-mcp": {
"command": "npx",
"args": ["-y", "github:<owner>/ssh-mcp"]
}
}
}Claude Code CLI example:
claude mcp add ssh-mcp -- npx -y github:<owner>/ssh-mcpTo run from a local clone instead of npx, install dependencies and point the client at the entry file:
npm install
node /path/to/ssh-mcp/src/index.jsData directory
All state lives in ~/.ssh-mcp/, separate from the source tree.
The directory is created with mode 0700 and files with 0600 (POSIX; Windows inherits the %USERPROFILE% ACL).
File | Purpose |
| 32-byte AES key, generated on first run |
| Default connection settings ( |
| Session metadata ( |
| Host key fingerprints ( |
If store.key is deleted, stored passwords cannot be decrypted and must be re-entered with save_config.
Move the whole directory when migrating to another machine.
Security note: the key and the ciphertext live in the same directory. This protects against a single file leaking (backups, accidental sharing), not against an attacker with access to your home directory.
Tools
Tool | Description |
| Save default connection settings (host, port, username, password, viewScript, project) |
| Show saved settings with the password masked |
| SSH login → run viewScript → |
| Open a session with explicit parameters, independent of saved config. |
| Run |
| Run a shell command and return its output ( |
| Send a line to an interactive prompt and return the next output |
| SFTP download preserving the remote path under |
| SFTP upload with local/remote MD5 comparison |
| ClearCase |
| List stored sessions and whether each is currently connected |
| Close the connection and remove the session from the store |
Typical flow
save_config(...)once.connect()per session; keep the returnedsessionId.exec(sessionId, "ctls"),exec(sessionId, "cat /vobs/..."),checkout(...).close_session(sessionId)when done.
Known limitations
Host keys are trusted on first use and pinned in
~/.ssh-mcp/known_hosts. A later mismatch is rejected; if the server key was legitimately changed, delete that host's line.execwaits for completion up totimeoutMs(default 30000). On timeout it sends Ctrl-C and returns the partial output with a[timed out ...]prefix. Interactive commands such asrelmust go throughsend_input.SFTP runs outside the ClearCase view, so
download_file/upload_filedo not see VOB paths. Useexec cat/ heredocs instead.Remote checksum uses
md5sum, which may be absent on some Unix variants.
ssh-mcp (한국어)
MCP 클라이언트(Claude Code, Claude Desktop, Cursor 등)에 레거시 Unix 호스트용 지속 SSH 셸을 제공하는
MCP (Model Context Protocol) 서버입니다.
특수한 ClearCase 작업 흐름(yuview, rel, ctco)을 위한 보조 도구를 포함합니다.
기능
세션별 지속 인터랙티브 셸(csh/sh), 필요 시 자동 재접속
sentinel 기반
exec출력 캡처, 인터랙티브 프롬프트용send_inputconnect한 번으로 SSH 로그인, view 스크립트,rel프로젝트 선택,XN_HOME확인까지 수행MD5 검증을 포함한 SFTP
download_file/upload_fileClearCase
checkout(ctco)자격증명은
~/.ssh-mcp/에 AES-256-GCM 암호문으로 저장레거시 SSH 알고리즘 지원 (DH group1/group14 SHA-1, CBC 암호, ssh-rsa/ssh-dss)
요구사항
Node.js 18 이상
대상 SSH 호스트에 대한 네트워크 접근
설치
서버는 stdio 기반 MCP 로 동작합니다. 사용하는 MCP 클라이언트에 아래 명령을 등록합니다.
범용 MCP 클라이언트 설정 (JSON):
{
"mcpServers": {
"ssh-mcp": {
"command": "npx",
"args": ["-y", "github:<owner>/ssh-mcp"]
}
}
}Claude Code CLI 예시:
claude mcp add ssh-mcp -- npx -y github:<owner>/ssh-mcpnpx 대신 로컬 클론에서 실행하려면 의존성을 설치한 뒤 클라이언트에 진입 파일을 지정합니다.
npm install
node /path/to/ssh-mcp/src/index.js데이터 디렉토리
모든 상태는 소스 트리와 분리된 ~/.ssh-mcp/ 에 저장됩니다.
디렉토리는 0700, 파일은 0600 으로 생성됩니다 (POSIX 기준. Windows 는 %USERPROFILE% ACL 을 상속).
파일 | 용도 |
| 32바이트 AES 키, 최초 실행 시 자동 생성 |
| 기본 연결 설정 ( |
| 세션 메타 ( |
| 호스트 키 지문 ( |
store.key 가 삭제되면 저장된 비밀번호는 복호화할 수 없으므로 save_config 로 재입력해야 합니다.
다른 PC 로 이전할 때는 디렉토리 전체를 함께 옮깁니다.
보안 유의사항: 키와 암호문이 같은 디렉토리에 있습니다. 파일 단위 유출(백업, 실수로 공유)은 막아주지만 홈 디렉토리 전체에 접근 가능한 공격자에게는 보호가 되지 않습니다.
도구
도구 | 설명 |
| 기본 연결 설정 저장 (host, port, username, password, viewScript, project) |
| 저장된 설정 조회 (비밀번호 마스킹) |
| SSH 로그인 → viewScript 실행 → |
| 저장된 설정과 무관하게 파라미터를 직접 지정해 세션 생성. |
| 기존 세션에서 |
| 셸 명령 실행 후 출력 반환 ( |
| 인터랙티브 프롬프트에 한 줄 입력 후 다음 출력 반환 |
| 원격 경로 구조를 유지하며 |
| SFTP 업로드 후 로컬/원격 MD5 비교 |
| 파일에 ClearCase |
| 저장된 세션 목록과 현재 연결 여부 |
| 연결 종료 및 스토어에서 세션 제거 |
기본 흐름
save_config(...)최초 1회.세션마다
connect()호출 후 반환된sessionId보관.exec(sessionId, "ctls"),exec(sessionId, "cat /vobs/..."),checkout(...).작업 완료 시
close_session(sessionId).
알려진 제약
호스트 키는 최초 접속 시 신뢰(trust on first use)하여
~/.ssh-mcp/known_hosts에 고정됩니다. 이후 불일치하면 접속을 거부하며, 서버 키가 정당하게 바뀐 경우 해당 호스트 줄을 삭제하십시오.exec는timeoutMs(기본 30000) 까지 완료를 기다립니다. 타임아웃 시 Ctrl-C 를 보내고[timed out ...]접두어와 함께 부분 출력을 반환합니다.rel같은 인터랙티브 명령은send_input으로 실행해야 합니다.SFTP 는 ClearCase view 밖에서 동작하므로
download_file/upload_file은 VOB 경로를 인식하지 못합니다.exec cat또는 heredoc 을 사용하십시오.원격 체크섬은
md5sum을 사용하며 일부 Unix 변종에는 없을 수 있습니다.
This server cannot be deployed
Maintenance
Related MCP Connectors
Run commands and read/write files on your servers over Termalin's keyless tunnels (hosted MCP).
Scoped, audited SSH exec, sessions, and SFTP on your saved servers without exposing credentials
Remote MCP server for Tandem docs, install guides, SDKs, workflows, and agent setup help.
Remote MCP server for managing Muninx tickets, messages, ticket search, and support analytics.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceSSH-based MCP server that enables remote execution of SSH commands, file transfers, and secure server management via the MCP protocol.ISC
- AlicenseAqualityBmaintenanceManages multiple SSH servers through a local workspace with MCP tools, executing commands and transferring files securely with credential isolation.91MIT
- AlicenseNot gradedqualityBmaintenanceMCP server providing safe, persistent SSH sessions to remote machines with multi-hop ProxyJump tunneling, SFTP file transfer, and stored host profiles.MIT
- AlicenseAqualityBmaintenanceEnables AI clients to securely execute remote commands and transfer files over SSH through standardized MCP tools, with multi-host management, flexible authentication, and an admin console.5232 npm3ISC