Loading...
{
"mcpServers": {
"ssh-mcp": {
"command": "npx",
"args": [
"ssh-mcp",
"-y",
"--",
"--host=1.2.3.4",
"--port=22",
"--user=root",
"--password=pass",
"--key=path/to/key"
]
}
}
}execExecutes a shell command on the remote server.
Allows arbitrary shell command execution.
sudo-execExecutes a shell command on the remote server with sudo privileges.
Allows arbitrary shell command execution with elevated privileges.
This server allows remote execution of shell commands, posing a significant risk if misconfigured or compromised. It is relatively safe if sudo is disabled, strong passwords/keys are used, and command timeouts are short. It is risky if sudo is enabled with weak passwords, no command length limits, and long timeouts.