SSH-Utils-MCP

SSH-Utils-MCP

1

ssh-utils is an MCP server that facilitates SSH command execution on remote servers from a development environment, utilizing secure key-based authentication. It integrates with tools like Roo Code for an efficient and secure setup.

ssh-utils

Purpose

ssh-utils is a Model Context Protocol (MCP) server that allows you to execute terminal commands on a remote server via SSH. It is designed to be used as a tool within Roo Code or any MCP-compatible client, enabling secure, key-based SSH command execution from your development environment.

How It Works

  • The server exposes a tool called execute_ssh_command via the MCP protocol.
  • When invoked, it connects to a remote server using SSH and runs the specified command.
  • Credentials and connection details are loaded from a configuration file, which can be placed in the current working directory, workspace root, or the global config directory.
  • If multiple profiles are present, the first is used by default, or a specific profile can be chosen.
  • Tool arguments can override config file values.

Usage

  1. Place your config file in one of the supported locations.
  2. Use the execute_ssh_command tool from Roo Code or another MCP client, specifying the command and any overriding connection parameters.

Security

  • Password-based SSH authentication is not allowed for security reasons; only key-based authentication is supported.