ssh
SSH 连接和管理远程服务器。使用 paramiko (Python) 库,支持在 Windows/Linux 上通过 SSH 执行远程命令、安装软件、查看日志等操作。
Why use this skill?
Efficiently manage and automate remote servers with the OpenClaw SSH skill. Securely execute commands, monitor logs, and handle system administration on Linux and Windows.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lycohana/sshWhat This Skill Does
The SSH skill is a robust infrastructure management tool for OpenClaw, powered by the industry-standard Paramiko library. It enables seamless, cross-platform remote server administration across both Windows and Linux environments. This skill provides an abstraction layer for establishing secure shell connections, allowing agents to execute arbitrary shell commands, manage software dependencies, monitor system logs, and perform complex server health diagnostics without needing manual intervention. By automating SSH workflows, the skill bridges the gap between AI orchestration and physical or cloud-based server infrastructure.
Installation
To integrate this capability into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/lycohana/ssh
Ensure your local environment has the required Python dependencies, specifically the paramiko library, which serves as the backbone for these secure operations. If you are operating in a restricted firewall environment, verify that your agent host has outbound connectivity on TCP port 22 to your target servers.
Use Cases
- Automated Provisioning: Quickly bootstrap servers by running configuration scripts, installing packages (apt/yum), or updating system environments.
- Log Aggregation: Proactively monitor system health by remotely reading log files like
syslogor application-specific logs during incident response. - Batch Management: Execute identical maintenance tasks across a fleet of servers in a controlled sequence.
- Diagnostic Interactivity: Utilize the shell invocation feature for troubleshooting complex issues that require sequential command interaction.
Example Prompts
- "Connect to the server at 192.168.1.50 with my root credentials, run 'df -h' to check disk usage, and report if any partition is over 90% full."
- "SSH into the staging server, navigate to the web directory, pull the latest changes from git, and restart the service."
- "Open a session to the remote production server and retrieve the last 50 lines of the nginx error log for me to review."
Tips & Limitations
- Security: Always prioritize key-based authentication over password-based authentication when possible to minimize credential exposure. Never store plain-text passwords in persistent prompt history.
- Compatibility: While Paramiko is highly portable, be aware that Windows OpenSSH and standard Linux SSH sometimes interpret terminal codes differently; test interactive sessions thoroughly.
- Reliability: Use the provided
AutoAddPolicyfor initial setup, but consider implementing strict host key verification for production environments to prevent man-in-the-middle risks. - Scope: This skill is designed for system-level task execution. Ensure your SSH user account follows the principle of least privilege.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lycohana-ssh": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution
Related Skills
siliconflow-vision
图片识别与分析工具。使用视觉大模型识别图片内容,输出详细客观的识别结果供主模型分析。当用户发图片时,主模型必须直接调用此 skill,然后基于识别结果进行分析和回答。支持 SiliconFlow(默认)、OpenAI、Anthropic 等多服务商。
feishu-send-message
通过 API 向飞书用户发送消息。当你需要通过手机号或任意用户 ID(open_id、user_id、union_id)向飞书用户发送消息时使用。自动尝试所有 ID 类型以找到有效的那个。 **新增**:消息长度指南和长内容多部分发送最佳实践!
moltbook-poster
Moltbook 代理社交网络工具集。用于发帖、评论、点赞、获取动态、管理私信等。发帖频率限制为每30分钟1篇,需要配置 configs/moltbook.json。