RuleGo RuleGo
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文

广告采用随机轮播方式显示 ❤️成为赞助商
  • Quick Start

  • Rule Chain

  • Standard Components

    • Standard Components Overview
    • filter

    • action

    • transform

    • external

      • restApiCall
      • mqttClient
      • sendEmail
      • dbClient
      • ssh
        • Configuration
        • Relation Type
        • Execution result
        • Configuration example
        • Application example
      • net
      • Cache Set
      • Cache Get
      • Cache Delete
    • flow

  • Extension Components

  • Custom Components

  • Components marketplace

  • Visualization

  • AOP

  • Trigger

  • Advanced Topic

  • RuleGo-Server

  • FAQ

  • Endpoint Module

  • Support

目录

ssh

ssh component: remotely log in via ssh and execute Shell script. Used for scenarios such as workflow scheduling, automated operation and maintenance, big data offline analysis, etc.

# Configuration

Field Type Description Default value
Host string ssh host address None
Port int ssh host port None
Username string ssh login username None
Password string ssh login password None
Cmd string shell command, can using Component Configuration Variables. None

# Relation Type

  • Success: Script execution successful, send the message to the Success chain
  • Failure: Script execution failed/host unreachable, send the message to the Failure chain

# Execution result

  • Script execution successful: Script execution result replaces msg.Data, and passes to the next node
  • Script execution failed: Script execution result replaces msg.Data, and passes to the next node

msg.DataType will be forced to TEXT

# Configuration example

  {
  "id": "s1",
  "type": "ssh",
  "name": "Execute shell",
  "configuration": {
    "host": "192.168.1.1",
    "port": 22,
    "username": "root",
    "password": "aaaaaa",
    "cmd": "ls /root"
  }
 }
1
2
3
4
5
6
7
8
9
10
11
12

# Application example

Example reference: Example (opens new window)

Edit this page on GitHub (opens new window)
Last Updated: 2025/05/16, 02:05:35
dbClient
net

← dbClient net→

Theme by Vdoing | Copyright © 2023-2025 RuleGo Team | Apache 2.0 License

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式