编程

Remote Desktop

Connect to remote desktops via RDP, VNC, and SSH X11 with secure tunneling and troubleshooting.

它能做什么

On first use, read for integration guidelines and help the user with their question.

技能文档

Setup

On first use, read setup.md for integration guidelines and help the user with their question.

When to Use

User needs remote desktop access to another machine. Agent handles protocol selection, connection commands, tunnel setup, and troubleshooting display issues.

Architecture

Config lives in ~/remote-desktop/. See memory-template.md for structure.

~/remote-desktop/
├── memory.md         # Saved hosts, preferences
└── hosts/            # Per-host connection profiles

Quick Reference

TopicFile
Setup processsetup.md
Memory templatememory-template.md
Protocol detailsprotocols.md
Troubleshootingtroubleshooting.md

Core Rules

1. Protocol Selection

Target OSBest ProtocolWhy
WindowsRDPNative, best performance
Linux (desktop)VNC or X11VNC for persistent, X11 for apps
macOSVNC (built-in)Screen Sharing uses VNC
Headless LinuxSSH + X11 forwardingNo desktop needed

2. Security First

  • Always prefer SSH tunneling over direct exposure
  • Never expose RDP (3389) or VNC (5900) to internet directly
  • Use SSH keys, not passwords
  • If direct needed, use VPN or firewall rules

3. Connection Commands

RDP to Windows:

# xfreerdp (recommended)
xfreerdp /v:HOST /u:USER /p:PASS /size:1920x1080 /dynamic-resolution

# With SSH tunnel first
ssh -L 3389:localhost:3389 user@jumphost
xfreerdp /v:localhost /u:USER

VNC:

# Direct (NOT recommended for internet)
vncviewer HOST:5901

# Via SSH tunnel (recommended)
ssh -L 5901:localhost:5901 user@HOST
vncviewer localhost:5901

SSH X11 forwarding:

# Single app
ssh -X user@HOST firefox

# Trusted (faster, less secure)
ssh -Y user@HOST

4. Port Defaults

ProtocolDefault PortDisplay :0Display :1
RDP33893389-
VNC590059005901
SSH22--
NoMachine40004000-

5. Tunnel Everything

For any remote desktop over internet:

# Local port forward
ssh -L LOCAL_PORT:TARGET:REMOTE_PORT user@JUMPHOST

# Example: RDP via jumphost
ssh -L 13389:windows-pc:3389 user@jumphost
xfreerdp /v:localhost:13389 /u:USER

6. Clipboard and Files

ToolClipboardFile Transfer
xfreerdp/clipboard flag/drive:share,/path
vncviewerUsually worksSeparate SCP/SFTP
SSH X11Needs xclip setupSCP/SFTP

When a connection works, ask "Want me to save this config for next time?" If yes, save to ~/remote-desktop/hosts/:

# hostname.md
host: 192.168.1.50
protocol: rdp
user: admin
tunnel: ssh user@jumphost -L 3389:192.168.1.50:3389
resolution: 1920x1080
notes: Windows 11 dev machine

Never save passwords — only hostnames, users, and connection flags.

Common Traps

  • Black screen after VNC connect → Display manager not running or wrong display number. Try :1 instead of :0, or start a VNC server: vncserver :1
  • RDP disconnects immediately → Check Network Level Authentication (NLA) settings, or add /sec:tls to xfreerdp
  • X11 forwarding not working → Ensure X11Forwarding yes in server's /etc/ssh/sshd_config and ForwardX11 yes in client config
  • Slow VNC performance → Use tighter encodings: vncviewer -encoding tight HOST:1
  • "Connection refused" → Service not running, firewall blocking, or wrong port. Check with ss -tlnp | grep PORT
  • Clipboard not syncing → xfreerdp needs /clipboard, VNC needs vncconfig running

Security & Privacy

Data that stays local:

  • Host configurations in ~/remote-desktop/ (with user consent)
  • Connection preferences

This skill does NOT:

  • Store passwords in plain text — use SSH keys or system keyring
  • Auto-save configs without asking first
  • Connect to hosts without explicit user command
  • Make any network requests itself (you run the commands)
  • Access any memory outside ~/remote-desktop/

Before saving a host profile: Always ask "Want me to save this config for next time?"

Scope

This skill ONLY:

  • Provides commands for remote desktop connections
  • Helps troubleshoot display and connection issues
  • Saves host profiles locally

This skill NEVER:

  • Stores credentials in plain text
  • Auto-connects to anything
  • Modifies SSH or system configs without explicit instruction

Install with clawhub install if user confirms:

  • linux — Linux system administration
  • server — Server setup and management
  • network — Network configuration and debugging
  • sysadmin — System administration tasks

Feedback

  • If useful: clawhub star remote-desktop
  • Stay updated: clawhub sync

相关技能

Execute terminal commands safely and reliably with clear pre-checks, output validation, and recovery steps. Use when users ask to run shell/CLI commands, ins...

115 次安装1 星标

通过 curl 调用 JSON-RPC API 发布 Web 应用,并获得一个公开访问的网址。

152 次安装8 星标

用一条 CLI 命令管理 Nextcloud 的笔记、任务、日历、文件、联系人和 Deck 看板。

187 次安装9 星标

Desktop automation via native OS accessibility trees using the agent-desktop CLI. Use when an AI agent needs to observe, interact with, or automate desktop applications (click buttons, fill forms, navigate menus, read UI state, toggle checkboxes, scroll, drag, type text, take screenshots, manage windows, use clipboard, manage notifications). Covers 58 command names (54 operational; four held-input names fail closed until daemon ownership exists) across observation, interaction, keyboard/mouse, app lifecycle, notifications (macOS), clipboard, wait, session lifecycle, and a `skills` command that bundles docs straight from the binary. Triggers on: "click button", "fill form", "open app", "read UI", "automate desktop", "accessibility tree", "snapshot app", "type into field", "navigate menu", "toggle checkbox", "take screenshot", "desktop automation", "agent-desktop", or any desktop GUI interaction task. Supports the macOS Phase 1 adapter, with Windows and Linux planned against the same cor

52 次安装

把消息转发到任意 OpenAI 兼容的 AI 代理,并跨调用维持多轮会话。

121 次安装6 星标

面向 AI 代理的端到端加密对等网络:gossip 订阅发布、CRDT 同步、MLS 群组加密、NAT 穿透,无需任何中心服务器。

65 次安装1 星标

Iván 的更多技能

浏览全部技能

执行 Git 操作(提交、分支、合并、变基、冲突解决与恢复)时强制套用安全规则。

作者 Iván527 次安装31 星标

用可量化的层级、间距、字号、配色与版式规则,绘制并诊断视觉作品。

作者 Iván137 次安装5 星标

围绕 CSS 机制排查问题并编写组件样式表,而不是凭感觉试错。

作者 Iván97 次安装5 星标

以系统方式规划并执行自学:从出口测试倒推课程,加入间隔复习与刻意练习,产出可验证的迁移证据。

作者 Iván93 次安装3 星标

针对你的 Azure 订阅,做架构设计、故障排查、安全加固与成本优化

作者 Iván86 次安装2 星标

按配置的 JDK 版本诊断 Java 与 JVM 问题(从 NPE 到容器 OOM),给出可直接套用的代码与配置。

作者 Iván130 次安装9 星标