Install
openclaw skills install ssh-serverSSH remote connection and operation for servers (Linux/Unix cloud servers, etc.)
openclaw skills install ssh-serverConnect to and operate remote Linux/Unix servers via SSH.
⚠️ Important: Protect Sensitive Info
SSH client is usually pre-installed:
Method A: Interactive Add (Recommended)
Run this in your local terminal:
python D:\openClaw\openclaw\config\ssh_config.py add
Then enter:
Method B: SSH Key Login (More Secure)
# 1. Generate local SSH key (if not exists)
ssh-keygen -t ed25519
# 2. Copy public key to server
ssh-copy-id user@your-server-ip
Run in your terminal:
ssh -o StrictHostKeyChecking=no user@your-server-ip
Then enter password manually.
Run in your terminal:
python D:\openClaw\openclaw\config\ssh_config.py connect <server-name>
System will prompt for password, then connect.
After connecting, you can execute:
# System overview
uptime
# Memory usage
free -h
# Disk usage
df -h
# CPU info
lscpu
# Full system info
uname -a && uptime && free -h && df -h
# Online users
who
# Process list
ps aux
# Processes sorted by memory
ps aux --sort=-%mem
# Find specific process
ps aux | grep nginx
# Network connections
ss -tuln
# Port usage
netstat -tuln
# Check service status
systemctl status nginx
# Start service
sudo systemctl start nginx
# Stop service
sudo systemctl stop nginx
# Restart service
sudo systemctl restart nginx
# System logs
sudo journalctl -xe
# Last 100 lines
sudo journalctl -n 100
# Specific service logs
sudo journalctl -u nginx
# Real-time log
tail -f /var/log/syslog
# Running containers
docker ps
# All containers
docker ps -a
# Container logs
docker logs container_name
# Enter container
docker exec -it container_name bash
Server configs saved to D:\openClaw\openclaw\config\servers.json (passwords encrypted).
{
"vps": {
"host": "xxx.xxx.xxx.xxx",
"port": 22,
"username": "root",
"key_file": null,
"password_encrypted": "gAAAAAB..."
}
}
# Add server
python config/ssh_config.py add
# List servers
python config/ssh_config.py list
# Connect to server
python config/ssh_config.py connect <name>
# Delete server
python config/ssh_config.py delete <name>
python config/ssh_config.py add in terminalssh user@IP and enters password