← 返回
安全合规 中文

sshexec

A skill to execute SSH commands on remote servers, supporting both password and key-based authentication. It includes error handling and logging for command...
在远程服务器上执行SSH命令的技能,支持密码和密钥认证,包含错误处理和日志记录功能。
xlbbb-cn
安全合规 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 808
下载
💾 36
安装
1
版本
#latest

概述

SSH Command Executor

This skill allows you to execute SSH commands on remote servers securely. It supports both password and key-based authentication methods, making it versatile for various use cases.

Features

  • Authentication: Supports both password and key-based authentication.
  • Command Execution: Execute any command on the remote server and retrieve the output.
  • Error Handling: Provides detailed error messages for failed command executions.
  • Logging: Logs all executed commands and their results for auditing purposes.
  • Prerequisites

  • SSH Client: Ensure you have an SSH client installed on your local machine.
  • Remote Server Access: You must have access to the remote server with the necessary credentials.
  • Python Environment: This skill is implemented in Python, so ensure you have Python installed on your local machine.
  • Usage

To execute a command on a remote server using password authentication:

python3 skills/sshexec/ssh_exec.py --host "remote-server.com" --user "username" --password "password" --command "ls -la"

To execute a command using key-based authentication:

python3 skills/sshexec/ssh_exec.py --host "remote-server.com" --user "username" --key "path/to/private/key" --command "ls -la"

Error Handling

The skill will provide detailed error messages if the command execution fails, such as authentication errors, connection issues, or command errors. All errors will be logged for further analysis.

Future Expansion

  • Support for executing multiple commands in a single session.
  • Integration with task schedulers for automated command execution.
  • Enhanced logging with timestamps and command output storage.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 02:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,586
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,151
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,699