Execute SSH commands, upload/download files, and manage remote servers through n8n workflows with dynamic configuration and AI agent integration
This skill enables SSH operations in n8n workflows, including command execution, file transfers, and AI-powered SSH automation through the Hadidiz-AI tool node.
Provides comprehensive SSH functionality for n8n workflows:
1. n8n installed (self-hosted or n8n.cloud)
2. SSH access to target servers
3. For AI Agent features: n8n with AI Agent support
1. **Enable community tool usage** (required for AI Agent integration):
```bash
export N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
```
2. **Install the package**:
```bash
npm install n8n-nodes-sshv2
```
3. **Restart n8n** to load the new nodes
1. Navigate to **Settings → Community Nodes**
2. Click **Install**
3. Enter package name: `n8n-nodes-sshv2`
4. Click **Install** and wait for completion
1. **Add SSHv2 node** to your workflow
2. **Configure connection**:
- Host: SSH server address
- Port: SSH port (default 22)
- Username: SSH username
- Authentication: Choose password or private key
3. **Select operation**:
- **Execute Command**: Run shell commands
- **Upload File**: Transfer files to remote server
- **Download File**: Retrieve files from remote server
4. **Configure parameters dynamically** using expressions from previous nodes if needed
1. **Add AI Agent node** to your workflow
2. **Select "Tools Agent"** as agent type
3. **Add "Hadidiz-AI"** from available tools
4. **Configure SSH parameters**:
- Connection details can be passed dynamically
- Supports both password and key-based auth
5. **Prompt the AI** with natural language instructions:
- "Execute 'df -h' on the production server"
- "Download the log file from /var/log/app.log"
- "Upload the deployment package to /opt/app/"
Use expressions to inject credentials from environment or previous nodes:
```javascript
// In SSH node connection fields
Host: {{ $env.SSH_HOST }}
Username: {{ $env.SSH_USER }}
Password: {{ $env.SSH_PASSWORD }}
```
Or from previous node output:
```javascript
Host: {{ $json.serverAddress }}
Port: {{ $json.sshPort }}
```
**Connection timeout**:
**Permission denied**:
**AI Agent not showing Hadidiz-AI tool**:
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/ssh-operations-with-n8n/raw